зеркало из https://github.com/mozilla/pluotsorbet.git
50 строки
1.1 KiB
Makefile
50 строки
1.1 KiB
Makefile
.PHONY: all test tests j2me java certs app clean
|
|
BASIC_SRCS=$(shell find . -name "*.ts" -d 1)
|
|
JIT_SRCS=$(shell find jit -name "*.ts")
|
|
|
|
all: java tests j2me
|
|
|
|
test: all
|
|
rm -f test.log
|
|
killall python Python || true
|
|
python tests/httpServer.py &
|
|
python tests/echoServer.py &
|
|
cd tests && python httpsServer.py &
|
|
cd tests && python sslEchoServer.py &
|
|
cd tests && python waitServers.py
|
|
casperjs --engine=slimerjs test `pwd`/tests/automation.js > test.log
|
|
killall python Python || true
|
|
python dumplog.py
|
|
if grep -q FAIL test.log; \
|
|
then false; \
|
|
else true; \
|
|
fi
|
|
|
|
build/j2me.js: $(BASIC_SRCS) $(JIT_SRCS)
|
|
@echo "Building J2ME"
|
|
node tools/tsc.js --sourcemap --target ES5 references.ts -d --out build/j2me.js
|
|
|
|
build/jsc.js: jsc.ts build/j2me.js
|
|
@echo "Building J2ME JSC CLI"
|
|
node tools/tsc.js --sourcemap --target ES5 jsc.ts --out build/jsc.js
|
|
|
|
j2me: build/j2me.js build/jsc.js
|
|
|
|
tests:
|
|
make -C tests
|
|
|
|
java:
|
|
make -C java
|
|
|
|
certs:
|
|
make -C certs
|
|
|
|
# Makes an output/ directory containing the packaged open web app files.
|
|
app: java certs
|
|
tools/package.sh
|
|
|
|
clean:
|
|
rm -f j2me.js `find . -name "*~"`
|
|
make -C tests clean
|
|
make -C java clean
|