commit a165af3d8406d98aaf6bb86048690ca3d4e6648d
parent b4fad52488df39729d10af313bf14b0edc0d4cdb
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date: Mon, 7 Oct 2019 20:58:43 +0200
Add distclean target
This target is needed in include/scc/scc because we have files there
that are not removed by clean. These files can be customized by the
user, so it is not a good idea to remove them with clean. The nested
makefile had a distclean target that was never used because the top
makefiles didn't implemented it.
Diffstat:
2 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/Makefile b/Makefile
@@ -34,6 +34,11 @@ $(ENVIRON):
dep:
$(FORALL)
+distclean: clean
+ $(MAKE) $(ENVIRON)
+ $(FORALL)
+ rm -f $(ENVIRON)
+
clean: $(ENVIRON)
$(FORALL)
xargs rm -rf < $(SCRIPTDIR)/libc-proto
diff --git a/scripts/rules.mk b/scripts/rules.mk
@@ -73,6 +73,8 @@ all:
dep:
+distclean:
+
inc-dep: FORCE
mkdep