Commit 983c43ebd785d537c6f59f4524443e9d23f1d1d7

Authored by Georg Hopp
1 parent f801e455

Fix variable dependencies

Showing 1 changed file with 5 additions and 3 deletions
@@ -20,9 +20,11 @@ all: $(LIBRARY) @@ -20,9 +20,11 @@ all: $(LIBRARY)
20 $(LIBRARY): $(SOURCES) 20 $(LIBRARY): $(SOURCES)
21 go install $(PACKAGE) 21 go install $(PACKAGE)
22 22
23 -.version:  
24 - -@printf "%s\n%s\n%s" "$(VERSION)" "$(REVISION)" >$@.new  
25 - -@diff $@ $@.new >/dev/null 2>&1 && rm $@.new || mv $@.new $@ 23 +.version.new:
  24 + -@printf "%s\n" "$(VERSION)" "$(REVISION)" >$@
  25 +
  26 +.version: .version.new
  27 + -@diff $@ $< >/dev/null 2>&1 && rm $< || mv $< $@
26 28
27 version.go: version.go.m4 .version 29 version.go: version.go.m4 .version
28 -@m4 -Dm4_version=$(VERSION) \ 30 -@m4 -Dm4_version=$(VERSION) \
Please register or login to post a comment