[hackers] [scc] Add multi-clean target to Makefile || Roberto E. Vargas Caballero
commit 07b4fdb377628004a417770806778869cc948d6c
Author: Roberto E. Vargas Caballero <roberto.vargas_AT_igrid-td.com>
AuthorDate: Thu Mar 31 12:23:22 2016 +0200
Commit: Roberto E. Vargas Caballero <roberto.vargas_AT_igrid-td.com>
CommitDate: Thu Mar 31 12:23:22 2016 +0200
Add multi-clean target to Makefile
This targes makes a clean for every architecture,
and it is perfect for a distclean.
diff --git a/Makefile b/Makefile
index fe8bef7..b05fff8 100644
--- a/Makefile
+++ b/Makefile
_AT_@ -54,5 +54,11 @@ clean:
(cd $$i; ${MAKE} -$(MAKEFLAGS) $_AT_ || 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
Received on Thu Mar 31 2016 - 12:26:33 CEST
This archive was generated by hypermail 2.3.0
: Thu Mar 31 2016 - 12:36:23 CEST