forked from Khan/khan-exercises
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
15 lines (12 loc) · 792 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
utils/calculator.js: build/calculator/calculator.jison build/calculator/calculator-tail.js
jison -m js build/calculator/calculator.jison -o utils/Calculator.js
cat build/calculator/calculator-tail.js >>utils/Calculator.js
mv utils/Calculator.js utils/calculator.js
# Pack all files in exercises/ into exercises-packed/, unless the one
# in exercises-packed is newer.
pack packed:
cd exercises && find * -name '*.html' | while read infile; do outfile="../exercises-packed/$$infile"; [ "$$outfile" -nt "$$infile" ] && continue; echo "$$infile"; mkdir -p "`dirname $$outfile`" && ruby ../build/pack.rb < "$$infile" > "$$outfile" || { rm "$$outfile"; exit 1; } done
lint:
python build/lint_i18n_strings.py exercises/*html
fix_lint:
python build/lint_i18n_strings.py --fix exercises/*html