SL=../../src/sl SAPL2JS=../../src/sapl2js TRAMPOLINE=--trampoline CC=java -jar ../../tools/closure-compiler.jar all: compiler.js install: compiler.js cp compiler.js run-time/compiler.js cp compiler.sapl run-time/compiler.sapl echo -e "flav_clean_json = " | cat - ../../src/clean.f > run-time/flav_clean.js echo -e "flav_ghc_json = " | cat - ../../src/ghc.f > run-time/flav_ghc.js clean: rm compiler.sapl rm compiler.js compiler.sapl: $(SL) -I sapl -e Flavour.toFlavour -e Compiler.toJS compiler.sapl compiler.js: compiler.sapl $(SAPL2JS) --trampoline compiler.sapl -o tmp.js $(CC) --js_output_file compiler.js tmp.js rm tmp.js