This repository has been archived on 2023-10-18. You can view files and clone it, but cannot push or open issues or pull requests.
link-validator/Makefile
Robert Kaussow 058284c17d
All checks were successful
continuous-integration/drone/push Build is passing
refactor: switch to filiph/linkcheck (#76)
2022-05-18 17:42:55 +02:00

30 lines
661 B
Makefile

# renovate: datasource=github-tags depName=filiph/linkcheck
export BUILD_VERSION ?= 2.0.22
export PATH := $(PATH):$(HOME)/.pub-cache/bin
SRC := src
.PHONY: all
all: build
.PHONY: build
build: build-src build-bin
.PHONY: build-src
build-src:
mkdir -p $(SRC); \
curl -sSL "https://github.com/filiph/linkcheck/archive/$${BUILD_VERSION##v}.tar.gz" | tar xz -C $(SRC) --strip-components=1
.PHONY: build-bin
build-bin:
dart --disable-analytics --version; \
cd $(SRC); \
dart pub get; \
dart pub global activate grinder; \
grind pkg-standalone-linux-x64; \
tar xzf build/linkcheck-*-linux-x64.tar.gz -C ./build
.PHONY: clean
clean:
rm -rf $(SRC)