cex

C/Curses file EXplorer
git clone git://git.wimdupont.com/cex.git
Log | Files | Refs | LICENSE

commit 1dc9e457e3333a2ac8d6b8ec242f1461618f00a9
parent 73a4021160e9c23e673b0f4acd549d9bfea794a8
Author: Wim Dupont <wim@wimdupont.com>
Date:   Sun, 22 Dec 2024 21:29:33 +0100

updated config setup

Diffstat:
M.gitignore | 1+
MMakefile | 7++++++-
Rconfig.h -> config.def.h | 0
3 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/.gitignore b/.gitignore @@ -1,2 +1,3 @@ *.o cex +config.h diff --git a/Makefile b/Makefile @@ -8,9 +8,11 @@ MANPREFIX = ${PREFIX}/share/man BIN = cex SRC = cex.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 cex: ${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