commit 2b049acd4bb13e4d471ae75d5a5921d5c29c2953
parent 75db25a5f57f1cd75f1a431055345631093406b1
Author: Wim Dupont <wim@wimdupont.com>
Date: Sun, 22 Dec 2024 21:32:01 +0100
updated config setup
Diffstat:
3 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/.gitignore b/.gitignore
@@ -1,2 +1,3 @@
*.o
scal
+config.h
diff --git a/Makefile b/Makefile
@@ -8,9 +8,11 @@ MANPREFIX = ${PREFIX}/share/man
BIN = scal
SRC = scal.c
-OBJ = ${SRC:.c=.o} config.h
+OBJ = ${SRC:.c=.o}
MAN1 = ${BIN:=.1}
+${OBJ}: config.h
+
all: ${BIN}
LDFLAGS=-lncurses
@@ -21,6 +23,9 @@ LDFLAGS=-lncurses
scal: ${OBJ}
${CC} -g -o $@ ${OBJ} ${LDFLAGS}
+config.h:
+ cp config.def.h $@
+
clean:
rm -f ${BIN} ${OBJ}
diff --git a/config.h b/config.def.h