[hackers] [scroll] Add distclean make target || Quentin Rameau

From: <git_AT_suckless.org>
Date: Sat, 11 Apr 2020 18:25:37 +0200 (CEST)

commit 3578d0da42c9a39af72c295a0b531c2808a86e59
Author: Quentin Rameau <quinq_AT_fifth.space>
AuthorDate: Sat Apr 11 14:30:11 2020 +0200
Commit: Jochen Sprickerhof <git_AT_jochen.sprickerhof.de>
CommitDate: Sat Apr 11 18:24:37 2020 +0200

    Add distclean make target

diff --git a/Makefile b/Makefile
index c3e1c50..4d415b7 100644
--- a/Makefile
+++ b/Makefile
_AT_@ -4,9 +4,6 @@ include config.mk
 
 all: scroll
 
-clean:
- rm -f scroll ptty
-
 config.h:
         cp config.def.h config.h
 
_AT_@ -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 $_AT_ $< -lutil
 
-.PHONY: all clean install test
+.PHONY: all install test clean distclean
Received on Sat Apr 11 2020 - 18:25:37 CEST

This archive was generated by hypermail 2.3.0 : Sat Apr 11 2020 - 18:36:37 CEST