diff --git a/makefile b/makefile index 4780449..dbfd9a7 100644 --- a/makefile +++ b/makefile @@ -1,6 +1,6 @@ GITHASH := $(shell git rev-parse --short HEAD)$(shell git diff-index --quiet HEAD || echo "-dirty") -TARNAME := xl-imbus-$(GITHASH).tar.gz +TARNAME := xl-imbus_$(GITHASH).tar.gz DIRNAME := xl run: @@ -32,10 +32,11 @@ tar: $(TARNAME) sign: $(TARNAME).minisig publish: $(TARNAME) $(TARNAME).minisig - # Assert git is clean @git diff-index --quiet HEAD || (echo "git is dirty, commit changes first"; exit 1) ssh server mkdir -p /public/$(DIRNAME) - rsync -avz $(TARNAME) server:/public/$(DIRNAME)/$(TARNAME) rsync -avz $(TARNAME).minisig server:/public/$(DIRNAME)/$(TARNAME).minisig + rsync -avz $(TARNAME) server:/public/$(DIRNAME)/$(TARNAME) + ssh server ln -sf /public/$(DIRNAME)/$(TARNAME).minisig /public/$(DIRNAME)/latest.tar.gz.minisig + ssh server ln -sf /public/$(DIRNAME)/$(TARNAME) /public/$(DIRNAME)/latest.tar.gz .PHONY: run watch build clean test archive sign publish