From 5eace1c2dd9fd1da7733c950d15e6faf97a73d05 Mon Sep 17 00:00:00 2001 From: Imbus <> Date: Sat, 11 May 2024 14:53:05 +0200 Subject: [PATCH] makefile --- makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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