diff options
author | Christian Hesse <mail@eworm.de> | 2017-11-22 00:30:08 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2017-11-22 00:30:08 +0100 |
commit | 71c792e2b23e82d98eec19dd48ad0019062d754b (patch) | |
tree | 6b599f45ef64965acc5d716cf4eda245978f9fd5 | |
parent | 6ae90465eac05d5e498745e9249243cd5311ea5b (diff) | |
download | udev-block-notify-71c792e2b23e82d98eec19dd48ad0019062d754b.tar.gz udev-block-notify-71c792e2b23e82d98eec19dd48ad0019062d754b.tar.zst |
use printf to generate version.h
-rw-r--r-- | Makefile | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -30,9 +30,7 @@ config.h: config.def.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 |