summaryrefslogtreecommitdiff
path: root/digital/avr/modules/twi/test/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'digital/avr/modules/twi/test/Makefile')
-rw-r--r--digital/avr/modules/twi/test/Makefile13
1 files changed, 9 insertions, 4 deletions
diff --git a/digital/avr/modules/twi/test/Makefile b/digital/avr/modules/twi/test/Makefile
index a5ba612e..1af68de3 100644
--- a/digital/avr/modules/twi/test/Makefile
+++ b/digital/avr/modules/twi/test/Makefile
@@ -2,10 +2,7 @@
# It is required to clean before building each program because they share the
# same object with different defines.
# Files are copied in *.keep.hex.
-all:
- # General cleaning
- $(MAKE) -f Makefile.slave clean
- $(MAKE) -f Makefile.master clean
+all: subclean
# Slave
$(MAKE) -f Makefile.slave
cp test_twi_sl.hex test_twi_sl.keep.hex
@@ -14,3 +11,11 @@ all:
$(MAKE) -f Makefile.master
cp test_twi_master.hex test_twi_master.keep.hex
$(MAKE) -f Makefile.master clean
+
+subclean:
+ # General cleaning
+ $(MAKE) -f Makefile.slave clean
+ $(MAKE) -f Makefile.master clean
+
+clean: subclean
+ rm -f test_twi_master.keep.hex test_twi_sl.keep.hex