summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2016-01-12 23:07:15 +0100
committerChristian Pointner <equinox@spreadspace.org>2016-01-12 23:07:15 +0100
commitce9c03a7418478d1bc636348cb7ae213838c7931 (patch)
treefc0eb1240c806c070ab1528543e0b98d41207208 /Makefile
parentnew upstream release (diff)
include manpage shipped from upstream
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files changed, 12 insertions, 5 deletions
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