]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - support/sdk/java/net/tinyos/packet/Makefile
Get rid of TOS and use TOSDIR like the other Makefiles in support/sdk/java.
[tinyos-2.x.git] / support / sdk / java / net / tinyos / packet / Makefile
index 94348efefa3c0fc6c743cafe742100aa26ff8902..29cb31710aa2e876daec8a4db522c8560038fb95 100644 (file)
@@ -1,12 +1,11 @@
 # Makefile for tools/java/net/tinyos/packet
 
-INITIAL_TARGETS = Serial.class
+INITIAL_TARGETS = Serial.class Serial.java
 
 ROOT = ../../..
 include $(ROOT)/Makefile.include
 
-TOS=$(shell ncc -print-tosdir)
-SERIAL_H = $(TOS)/lib/serial/Serial.h
+SERIAL_H = $(TOSDIR)/lib/serial/Serial.h
 
-Serial.java: $(SERIAL_H)
+Serial.java: $(SERIAL_H) FORCE
        ncg -o $@ -java-classname=net.tinyos.packet.Serial java $(SERIAL_H) Serial.h