aboutsummaryrefslogtreecommitdiff
path: root/tools/gator/daemon/notify/Makefile
blob: 0d8f0415f0e2c24ce1827d48f2f6c760deb118f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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