generated from Conreality/conreality-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
35 lines (24 loc) · 861 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
VERSION := $(shell cat VERSION)
GOPKG := github.com/conreality/conreality-developer
GOMOBILE ?= gomobile
LUAC ?= luac
TARGETS := scripts/hello.luac \
scripts/prelude.luac \
android/app/libs/developer.aar \
android/app/libs/developer-sources.jar \
ios/Frameworks/Developer.framework
all: $(TARGETS)
%.luac: %.lua
$(LUAC) -o $@ $<
android/app/libs/developer.aar:
$(GOMOBILE) bind -o $@ -target=android/arm64 -tags=android -javapkg=app.conreality $(GOPKG)
android/app/libs/developer-sources.jar: android/app/libs/developer.aar
ios/Frameworks/Developer.framework:
$(GOMOBILE) bind -o $@ -target=ios/arm64 -tags=ios $(GOPKG)
clean:
rm -rf *~ $(TARGETS)
distclean: clean
mostlyclean: clean
.PHONY: clean distclean mostlyclean
.SECONDARY:
.SUFFIXES: