0
Fork 0
mirror of https://github.com/fastmail/Squire.git synced 2024-12-22 23:40:35 -05:00
Squire/Makefile

23 lines
511 B
Makefile
Raw Normal View History

2013-01-29 19:11:49 -05:00
.PHONY: all build clean
2014-12-08 04:46:35 -05:00
all: install build
2015-02-06 02:07:44 -05:00
install:
2014-12-08 04:46:35 -05:00
npm install
2011-10-28 22:15:21 -05:00
clean:
rm -rf build
build: build/squire.js build/document.html
2011-10-28 22:15:21 -05:00
build/squire-raw.js: source/intro.js source/Constants.js source/TreeWalker.js source/Node.js source/Range.js source/KeyHandlers.js source/Editor.js source/outro.js
2011-10-28 22:15:21 -05:00
mkdir -p $(@D)
cat $^ | grep -v '^\/\*jshint' >$@
build/squire.js: build/squire-raw.js
2014-12-08 04:46:35 -05:00
./node_modules/uglify-js/bin/uglifyjs $^ -c -m -o $@
2011-10-28 22:15:21 -05:00
build/document.html: source/document.html
mkdir -p $(@D)
cp $^ $@