ref: 7f521afbab78ad89be36f6b3a3f358a0ad6ddfc1
parent: 8c9ce06b6ef102af0618580eda1f0648beabfc9f
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Thu Mar 31 08:23:22 EDT 2016
Add multi-clean target to Makefile This targes makes a clean for every architecture, and it is perfect for a distclean.
--- a/Makefile
+++ b/Makefile
@@ -54,5 +54,11 @@
(cd $$i; ${MAKE} -$(MAKEFLAGS) $@ || exit); \
done
-distclean: clean
+multi-clean:
+ for i in $(ARCHS) ; \
+ do \
+ ARCH=$$i $(MAKE) -e -$(MAKEFLAGS) clean || exit; \
+ done
+
+distclean: multi-clean
rm -f bin/cc* bin/scc