commit 276ed2be439625121085aa8d4b445bb16fbab441
parent 788651768a878f9ecf4c3168e4b3790d74cb3c63
Author: nibo <nibo@relim.de>
Date: Wed, 26 Mar 2025 20:44:23 +0100
Stop rerunning make targets' prerequisite
If you already had the binary 'lorid' the make
target 'install' would still recompile it.
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile
@@ -14,7 +14,7 @@ VARS = -DDEFAULT_FONT=\"${DEFAULT_FONT}\" \
-DCOLOR=${COLOR} \
-DPREFIX=\"${PREFIX}\"
-compile:
+lorid:
$(CC) ${CFLAGS} ${VARS} -O2 ${SRC} -o lorid ${LDFLAGS}
static:
$(CC) -static ${CFLAGS} ${VARS} -O2 ${SRC} -o lorid ${STATIC_LDFLAGS}
@@ -23,7 +23,7 @@ debug:
clean:
rm *.o
rm lorid
-install: compile
+install: lorid
mkdir -p ${PREFIX}/bin
cp lorid ${PREFIX}/bin
mkdir -p ${MANPREFIX}/man1