diff options
Diffstat (limited to 'daemon/notify/Makefile')
-rw-r--r-- | daemon/notify/Makefile | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/daemon/notify/Makefile b/daemon/notify/Makefile new file mode 100644 index 0000000..0d8f041 --- /dev/null +++ b/daemon/notify/Makefile @@ -0,0 +1,24 @@ +ifneq ($(SDKDIR),) + +# Find the oldest SDK Platform installed >= 16 +SDK_PLATFORM := $(shell ls -d $(SDKDIR)/platforms/android-1[6-9] $(SDKDIR)/platforms/android-[2-9][0-9] | head -1) +# Find the newest SDK Build-tools +SDK_BUILD_TOOLS := $(shell ls -d $(SDKDIR)/build-tools/* | tail -1) + +all: notify.dex + +notify.dex: Notify.java + javac -cp $(SDK_PLATFORM)/data/layoutlib.jar -source 1.6 -target 1.6 $^ + $(SDK_BUILD_TOOLS)/dx --dex --output=$@ $(^:%.java=%.class) + +else + +all: + $(error Please specify SDKDIR as the location to the Android SDK) + +endif + +.PHONY: clean + +clean: + rm -f *~ *.class *.dex |