From 983c43ebd785d537c6f59f4524443e9d23f1d1d7 Mon Sep 17 00:00:00 2001 From: Georg Hopp Date: Wed, 3 Oct 2018 13:41:38 +0200 Subject: [PATCH] Fix variable dependencies --- Makefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index f7e7f5a..b461e4c 100644 --- a/Makefile +++ b/Makefile @@ -20,9 +20,11 @@ all: $(LIBRARY) $(LIBRARY): $(SOURCES) go install $(PACKAGE) -.version: - -@printf "%s\n%s\n%s" "$(VERSION)" "$(REVISION)" >$@.new - -@diff $@ $@.new >/dev/null 2>&1 && rm $@.new || mv $@.new $@ +.version.new: + -@printf "%s\n" "$(VERSION)" "$(REVISION)" >$@ + +.version: .version.new + -@diff $@ $< >/dev/null 2>&1 && rm $< || mv $< $@ version.go: version.go.m4 .version -@m4 -Dm4_version=$(VERSION) \