OSDN Git Service

Fix: project string
[dvibrowser/jdisp.git] / Makefile
1 #SHELL=bash -xe
2 include ./var/config.mk
3
4 all:
5         @for bundle in $$(find ./src/js/bundle -name '*.jsh') ; do \
6                 echo "Building bundle $$bundle" ;\
7                 file=$$(basename "$$bundle") ; \
8                 js=$${file%.jsh}.js ; \
9                 output=build/js/$$js; \
10                 $(PROG_INSTALL) -d build/js && \
11           $(PROG_CPP) -I./src/js/include -P -nostdinc -x c -o - "$$bundle" \
12                   | sed -n '/./p' > "$$output" && \
13                 echo "Wrote output on $$output" && \
14                 $(PROG_JSL) -process "$$output" && \
15                   if [ $$? -eq 3 ]  ; then exit 1 ; fi ; \
16                 echo "Test successful." \
17                 || exit 1 ; \
18         done
19
20 distclean:
21         -rm -rf var build