VERSION := 0.0.23 DEBARCHS := amd64 i386 armhf arm64 EXECUTEABLES := $(DEBARCHS:%=acmetool.%) all: $(EXECUTEABLES) acmetool.%: acmetool-v$(VERSION)-linux_%.tar.gz tar -xzf $< -O > $@ 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 $@ clean: rm -f acmetool.* rm -f acmetool-*.tar.gz