2 include ./var/config.mk
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." \