diff options
author | Christian Hesse <mail@eworm.de> | 2017-11-22 00:29:11 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2017-11-22 00:29:11 +0100 |
commit | d07104afdea87ef941406a15ceb088fc30a931d4 (patch) | |
tree | 7a93d22419d02745ca74a40aaa99e787b4960c1e | |
parent | c0c5ddd6594f423268f881fb950ed4b668360901 (diff) | |
download | pacredir-d07104afdea87ef941406a15ceb088fc30a931d4.tar.gz pacredir-d07104afdea87ef941406a15ceb088fc30a931d4.tar.zst |
use printf to generate version.h
-rw-r--r-- | Makefile | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -39,9 +39,7 @@ config.h: $(CP) config.def.h config.h version.h: $(wildcard .git/HEAD .git/index .git/refs/tags/*) Makefile - echo "#ifndef VERSION" > $@ - echo "#define VERSION \"$(shell git describe --long 2>/dev/null || echo ${VERSION})\"" >> $@ - echo "#endif" >> $@ + printf "#ifndef VERSION\n#define VERSION \"%s\"\n#endif\n" $(shell git describe --long 2>/dev/null || echo ${VERSION}) > $@ avahi/pacdbserve.service: avahi/pacdbserve.service.in $(SED) 's/%ARCH%/$(ARCH)/;s/%ID%/$(ID)/' avahi/pacdbserve.service.in > avahi/pacdbserve.service |