summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 38712c5..79b8de0 100644
--- a/Makefile
+++ b/Makefile
@@ -6,9 +6,12 @@ NAME=slstatus
all: ${NAME}
-${NAME}:
+${NAME}: config.h
${CC} ${CFLAGS} -o $@ ${NAME}.c ${LDFLAGS}
+config.h:
+ cp config.def.h $@
+
clean:
rm -f ${NAME}