commit 3578d0da42c9a39af72c295a0b531c2808a86e59
parent 0188d2f8b73aa4a77aa2fdda313b1192d81aa0a6
Author: Quentin Rameau <quinq@fifth.space>
Date: Sat, 11 Apr 2020 14:30:11 +0200
Add distclean make target
Diffstat:
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/Makefile b/Makefile
@@ -4,9 +4,6 @@ include config.mk
all: scroll
-clean:
- rm -f scroll ptty
-
config.h:
cp config.def.h config.h
@@ -24,7 +21,13 @@ test: scroll ptty
if ! ./ptty ./scroll true; then exit 1; fi
if ./ptty ./scroll false; then exit 1; fi
+clean:
+ rm -f scroll ptty
+
+distclean: clean
+ rm -f config.h
+
.c:
$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $@ $< -lutil
-.PHONY: all clean install test
+.PHONY: all install test clean distclean