shithub: scc

Download patch

ref: a165af3d8406d98aaf6bb86048690ca3d4e6648d
parent: b4fad52488df39729d10af313bf14b0edc0d4cdb
author: Roberto E. Vargas Caballero <[email protected]>
date: Mon Oct 7 16:58:43 EDT 2019

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.

--- a/Makefile
+++ b/Makefile
@@ -34,6 +34,11 @@
 dep:
 	$(FORALL)
 
+distclean: clean
+	$(MAKE) $(ENVIRON)
+	$(FORALL)
+	rm -f $(ENVIRON)
+
 clean: $(ENVIRON)
 	$(FORALL)
 	xargs rm -rf < $(SCRIPTDIR)/libc-proto
--- a/scripts/rules.mk
+++ b/scripts/rules.mk
@@ -73,6 +73,8 @@
 
 dep:
 
+distclean:
+
 inc-dep: FORCE
 	mkdep