summaryrefslogtreecommitdiff
path: root/digital/avr/modules/twi/test/Makefile
diff options
context:
space:
mode:
authorNicolas Schodet2008-03-06 23:32:31 +0100
committerNicolas Schodet2008-03-06 23:32:31 +0100
commit6263ed441f45d636d9a66f94e0bc30eaca13459f (patch)
tree542b5a07b653bc7f211b38d9912a705828a39d0c /digital/avr/modules/twi/test/Makefile
parent1609d9e2a182fb5fa483f55fd021284e24db5c1b (diff)
* digital/avr/modules/twi:
- avrconfig cleanup.
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