diff options
author | Christian Pointner <equinox@spreadspace.org> | 2016-01-12 23:07:15 +0100 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2016-01-12 23:07:15 +0100 |
commit | ce9c03a7418478d1bc636348cb7ae213838c7931 (patch) | |
tree | fc0eb1240c806c070ab1528543e0b98d41207208 /Makefile | |
parent | new upstream release (diff) |
include manpage shipped from upstream
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 17 |
1 files changed, 12 insertions, 5 deletions
@@ -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 |