Use mk. prefix for Makefile time stamps and make git ignore them

This commit is contained in:
Michael Hohn
2024-09-13 09:44:08 -07:00
committed by =Michael Hohn
parent 8dd6c94918
commit a35fc619e6
7 changed files with 37 additions and 27 deletions

View File

@@ -1,8 +1,9 @@
all: mrva-server
MSI_TARGET := mrva-server:0.1.24
msi: mrva-server
mrva-server:
msi: mk.mrva-server
mrva-server: mk.mrva-server
mk.mrva-server:
cd ../../ && docker build -t mrva-server:0.1.24 -f cmd/server/Dockerfile .
touch $@
@@ -13,7 +14,8 @@ clean:
-docker rmi -f ${MSI_TARGET}
-rm mrva-server
msi-push: msi
msi-push: mk.msi-push
mk.msi-push: mk.mrva-server
docker tag ${MSI_TARGET} ghcr.io/hohn/${MSI_TARGET}
docker push ghcr.io/hohn/${MSI_TARGET}
touch $@