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.
2022-05-18 17:42:55 +02:00
|
|
|
# renovate: datasource=github-tags depName=filiph/linkcheck
|
2022-05-18 17:49:31 +02:00
|
|
|
export BUILD_VERSION ?= 2.0.23
|
2022-05-18 17:42:55 +02:00
|
|
|
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)
|