From ce9c03a7418478d1bc636348cb7ae213838c7931 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Tue, 12 Jan 2016 23:07:15 +0100 Subject: include manpage shipped from upstream --- Makefile | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index b4febb8..d354129 100644 --- a/Makefile +++ b/Makefile @@ -1,15 +1,22 @@ VERSION := 0.0.34 DEBARCHS := amd64 i386 armhf arm64 -EXECUTEABLES := $(DEBARCHS:%=acmetool.%) +EXECUTEABLES := $(DEBARCHS:%=bin/acmetool.%) +GITHUB_BASEURL := "https://github.com/hlandau/acme/releases/download" all: $(EXECUTEABLES) -acmetool.%: acmetool-v$(VERSION)-linux_%.tar.gz - tar -xzf $< -O > $@ +bin/acmetool.%: acmetool-v$(VERSION)-linux_%.tar.gz + @echo "extracting files... from $<" + @tar -xzf $< --strip-components=1 + @mv bin/acmetool $@ +acmetool-v$(VERSION)-linux_%.tar.gz: URL = "$(GITHUB_BASEURL)/v$(VERSION)/$(shell echo $@ | sed s/i386/386/ | sed s/armhf/arm/)" acmetool-v$(VERSION)-linux_%.tar.gz: - wget -nc "https://github.com/hlandau/acme/releases/download/v$(VERSION)/$(shell echo $@ | sed s/i386/386/ | sed s/armhf/arm/)" -O $@ + @echo "fetching file: $(URL)" + @wget -nc "$(URL)" -O $@ > /dev/null 2>&1 clean: - rm -f acmetool.* + rm -rf bin/ + rm -rf doc/ + rm -f README.md rm -f acmetool-*.tar.gz -- cgit v1.2.3