aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--Makefile17
1 files changed, 5 insertions, 12 deletions
diff --git a/Makefile b/Makefile
index 1f3f214..7fd114a 100644
--- a/Makefile
+++ b/Makefile
@@ -13,7 +13,11 @@ CONTRIBLANGS =
.SUFFIXES: .in .to .c .o
.in:
- sed -e 's:@VERSION@:$(VERSION):g' -e 's:@DATE@:$(DATE):g' < $< > $@
+ sed \
+ -e 's:@VERSION@:$(VERSION):g' \
+ -e 's:@DATE@:$(DATE):g' \
+ -e 's:@NAME@:$(NAME):g' \
+ < $< > $@
if [ -x $< ]; then chmod +x $@; fi
.c.o:
@@ -52,17 +56,6 @@ remembering: $(objects)
remembering-tests: $(t-objects)
$(CC) $(LDFLAGS) -o $@ $(t-objects) $(LDLIBS)
-src/config.h:
- printf '#ifndef REMEMBERING_CONFIG_H\n' >> $@
- printf '#define REMEMBERING_CONFIG_H\n' >> $@
- printf '\n' >> $@
- printf '#define _POSIX_C_SOURCE 200809L\n' >> $@
- printf '#define VERSION "$(VERSION)"\n' >> $@
- printf '#define DATE "$(DATE)"\n' >> $@
- printf '#define PROGNAME "$(NAME)"\n' >> $@
- printf '\n' >> $@
- printf '#endif\n' >> $@
-
src/remembering: src/remembering.in
$(objects) $(t-objects): src/config.h
src/tests-lib.to: src/tests-lib.h