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
Renovator Bot db4edb3554
Some checks failed
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is failing
chore(deps): update dependency filiph/linkcheck to v2.0.23 (#78)
Co-authored-by: Renovator Bot <renovator@rknet.org>
Co-committed-by: Renovator Bot <renovator@rknet.org>
2022-05-18 17:49:31 +02:00

30 lines
661 B
Makefile

# renovate: datasource=github-tags depName=filiph/linkcheck
export BUILD_VERSION ?= 2.0.23
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)