tMake BSD compatible - watch - minimalist watch program | |
git clone git://src.adamsgaard.dk/watch | |
Log | |
Files | |
Refs | |
LICENSE | |
--- | |
commit 0e4478bab18c9c1c6ce7412114b43da35f06ba44 | |
parent 422f5eba523aa313ea7bf9774dc500df2cb7db1b | |
Author: Anders Damsgaard <[email protected]> | |
Date: Thu, 26 Sep 2019 18:09:21 +0200 | |
Make BSD compatible | |
Diffstat: | |
M Makefile | 8 +++----- | |
1 file changed, 3 insertions(+), 5 deletions(-) | |
--- | |
diff --git a/Makefile b/Makefile | |
t@@ -1,8 +1,6 @@ | |
CFLAGS = -g -std=c99 -pedantic -Wall | |
LDFLAGS = -lm | |
-SRC = $(wildcard *.c) | |
-OBJ = $(patsubst %.c,%.o,$(SRC)) | |
-HDR = $(wildcard *.h) | |
+OBJ = watch.o | |
BIN = ./watch | |
PREFIX ?= ~/.local | |
t@@ -29,7 +27,7 @@ memtest: $(BIN) | |
valgrind --error-exitcode=1 --leak-check=full $(BIN) -q -n 2 -r 2 ls | |
clean: | |
- $(RM) *.o | |
- $(RM) $(BIN) | |
+ rm -f $(OBJ) | |
+ rm -f $(BIN) | |
.PHONY: default install uninstall memtest clean |