summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index fc2bf5c..85629f6 100644
--- a/Makefile
+++ b/Makefile
@@ -3,7 +3,7 @@ include config.mk
.POSIX:
.SUFFIXES: .c .o
-HDR = arg.h readpassphrase.h
+HDR = arg.h config.h readpassphrase.h
LIB = \
readpassphrase.o
SRC = \
@@ -20,7 +20,11 @@ binlib: util.a
bin: $(BIN)
-$(OBJ): readpassphrase.h config.mk
+$(OBJ): $(HDR) config.mk
+
+config.h:
+ @echo creating $@ from config.def.h
+ @cp config.def.h $@
.o:
@echo LD $@