diff options
author | Christian Hesse <mail@eworm.de> | 2017-11-22 00:26:40 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2017-11-22 00:26:40 +0100 |
commit | 682fa6b9b65008371b9625ca7ac9ee0f4de003b2 (patch) | |
tree | 8132106da49d2a4d5818529b13ddfe65e586693d /Makefile | |
parent | 07b1ecf04f901d62e7d6a54b204e430452124d0e (diff) | |
download | mpd-notification-682fa6b9b65008371b9625ca7ac9ee0f4de003b2.tar.gz mpd-notification-682fa6b9b65008371b9625ca7ac9ee0f4de003b2.tar.zst |
use printf to generate version.h
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -36,9 +36,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}) > $@ README.html: README.md $(MD) README.md > README.html |