summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 1 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index c4baa76..91bc5d2 100644
--- a/Makefile
+++ b/Makefile
@@ -23,9 +23,7 @@ nullshell: nullshell.c config.h version.h
$(CC) $(CFLAGS) $(LDFLAGS) -o nullshell nullshell.c
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}) > $@
config.h:
$(CP) config.def.h config.h