From df861e992478ad97cb51d85ac96d55ad899a5945 Mon Sep 17 00:00:00 2001 From: razvanm Date: Mon, 2 Feb 2009 18:08:06 +0000 Subject: [PATCH] Use CLEAN_EXTRA to remove the *.class *.pyc *Msg.java and *Msg.py. --- apps/RadioCountToLeds/Makefile | 1 + apps/tests/TestSerialBandwidth/Makefile | 1 + apps/tests/cc2420/LplBroadcastCountToLeds/Makefile | 1 + apps/tests/cc2420/RssiToSerial/Makefile | 2 +- apps/tests/cc2420/TestPacketLink/Makefile | 3 +-- apps/tests/cc2420/TxThroughput/Makefile | 3 +-- apps/tests/eyesIFX/RadioCountToFlash/Makefile | 1 + 7 files changed, 7 insertions(+), 5 deletions(-) diff --git a/apps/RadioCountToLeds/Makefile b/apps/RadioCountToLeds/Makefile index 0a8e2eb9..5cab01d6 100644 --- a/apps/RadioCountToLeds/Makefile +++ b/apps/RadioCountToLeds/Makefile @@ -1,5 +1,6 @@ COMPONENT=RadioCountToLedsAppC BUILD_EXTRA_DEPS = RadioCountMsg.py RadioCountMsg.class +CLEAN_EXTRA = RadioCountMsg.py RadioCountMsg.class RadioCountMsg.java RadioCountMsg.py: RadioCountToLeds.h mig python -target=$(PLATFORM) $(CFLAGS) -python-classname=RadioCountMsg RadioCountToLeds.h radio_count_msg -o $@ diff --git a/apps/tests/TestSerialBandwidth/Makefile b/apps/tests/TestSerialBandwidth/Makefile index b0aae054..c7603bf0 100644 --- a/apps/tests/TestSerialBandwidth/Makefile +++ b/apps/tests/TestSerialBandwidth/Makefile @@ -1,6 +1,7 @@ COMPONENT=TestSerialAppC BUILD_EXTRA_DEPS += TestSerialMsg.class TestSerial.class CFLAGS += -DTOSH_DATA_LENGTH=100 +CLEAN_EXTRA = *.class TestSerialMsg.java %.class: %.java javac $< diff --git a/apps/tests/cc2420/LplBroadcastCountToLeds/Makefile b/apps/tests/cc2420/LplBroadcastCountToLeds/Makefile index 6e62a379..139d6aea 100644 --- a/apps/tests/cc2420/LplBroadcastCountToLeds/Makefile +++ b/apps/tests/cc2420/LplBroadcastCountToLeds/Makefile @@ -4,6 +4,7 @@ CFLAGS += -DACK_LOW_POWER_LISTENING #CFLAGS += -DNOACK_LOW_POWER_LISTENING BUILD_EXTRA_DEPS = RadioCountMsg.py RadioCountMsg.class +CLEAN_EXTRA = *.class *.pyc RadioCountMsg.py RadioCountMsg.java RadioCountMsg.py: RadioCountToLeds.h mig python -target=$(PLATFORM) $(CFLAGS) -python-classname=RadioCountMsg RadioCountToLeds.h radio_count_msg -o $@ diff --git a/apps/tests/cc2420/RssiToSerial/Makefile b/apps/tests/cc2420/RssiToSerial/Makefile index 887e5f9c..8e1faddf 100644 --- a/apps/tests/cc2420/RssiToSerial/Makefile +++ b/apps/tests/cc2420/RssiToSerial/Makefile @@ -1,6 +1,6 @@ COMPONENT=RssiToSerialC - BUILD_EXTRA_DEPS = RssiSerialMsg.java SpecAnalyzer.class +CLEAN_EXTRA = *.class RssiSerialMsg.java RssiSerialMsg.java: RssiToSerial.h mig java -target=$(PLATFORM) $(CFLAGS) -java-classname=RssiSerialMsg RssiToSerial.h rssi_serial_msg -o $@ diff --git a/apps/tests/cc2420/TestPacketLink/Makefile b/apps/tests/cc2420/TestPacketLink/Makefile index fdf318a1..b1ca74d0 100644 --- a/apps/tests/cc2420/TestPacketLink/Makefile +++ b/apps/tests/cc2420/TestPacketLink/Makefile @@ -1,8 +1,7 @@ COMPONENT=TestPacketLinkC - CFLAGS += -DPACKET_LINK - BUILD_EXTRA_DEPS = PacketLinkMsg.java TestPacketLink.class +CLEAN_EXTRA = *.class PacketLinkMsg.java PacketLinkMsg.java: TestPacketLink.h mig java -target=$(PLATFORM) $(CFLAGS) -java-classname=PacketLinkMsg TestPacketLink.h PacketLinkMsg -o $@ diff --git a/apps/tests/cc2420/TxThroughput/Makefile b/apps/tests/cc2420/TxThroughput/Makefile index cf72257e..bbc8e533 100644 --- a/apps/tests/cc2420/TxThroughput/Makefile +++ b/apps/tests/cc2420/TxThroughput/Makefile @@ -1,7 +1,6 @@ COMPONENT=TxThroughputC - - BUILD_EXTRA_DEPS = ThroughputMsg.py ThroughputMsg.java ThroughputMsg.class +CLEAN_EXTRA = *.class *.pyc ThroughputMsg.py ThroughputMsg.java ThroughputMsg.py: TxThroughput.h mig python -target=$(PLATFORM) $(CFLAGS) -python-classname=ThroughputMsg TxThroughput.h ThroughputMsg -o $@ diff --git a/apps/tests/eyesIFX/RadioCountToFlash/Makefile b/apps/tests/eyesIFX/RadioCountToFlash/Makefile index 14ef6855..e98a3bc3 100644 --- a/apps/tests/eyesIFX/RadioCountToFlash/Makefile +++ b/apps/tests/eyesIFX/RadioCountToFlash/Makefile @@ -1,5 +1,6 @@ COMPONENT=RadioCountToFlashAppC BUILD_EXTRA_DEPS = RadioCountMsg.py RadioCountMsg.class +CLEAN_EXTRA = *.class RadioCountMsg.py RadioCountMsg.java RadioCountMsg.py: RadioCountToFlash.h mig python -target=$(PLATFORM) $(CFLAGS) -python-classname=RadioCountMsg RadioCountToFlash.h RadioCountMsg -o $@ -- 2.39.2