Renovator Bot
db4edb3554
Co-authored-by: Renovator Bot <renovator@rknet.org> Co-committed-by: Renovator Bot <renovator@rknet.org>
30 lines
661 B
Makefile
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)
|