diff options
author | Christian Hesse <mail@eworm.de> | 2017-11-22 00:27:33 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2017-11-22 00:27:33 +0100 |
commit | d3d02df693a4a5e448c01916d0d41de5bc4f0d54 (patch) | |
tree | e8d5f55a8dc8fbaab19419e822563204eff7d08a | |
parent | aa5a7c843aaabc78ec38017f91845fa92ce63ef9 (diff) | |
download | netlink-notify-d3d02df693a4a5e448c01916d0d41de5bc4f0d54.tar.gz netlink-notify-d3d02df693a4a5e448c01916d0d41de5bc4f0d54.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: $(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}) > $@ icons: icons/netlink-notify-up.png icons/netlink-notify-down.png icons/netlink-notify-address.png icons/netlink-notify-away.png |