0
Fork 0
mirror of https://github.com/fastmail/Squire.git synced 2024-12-22 23:40:35 -05:00
Squire/Makefile
Neil Jenkins 25ff83455e Exports some useful internal functions
This is a rebase/slight tidy of #226.
2016-08-23 20:59:38 +10:00

22 lines
565 B
Makefile

.PHONY: all build clean
all: install build
install:
npm install
clean:
rm -rf build
build: build/squire.js build/document.html
build/squire-raw.js: source/intro.js source/Constants.js source/TreeWalker.js source/Node.js source/Range.js source/KeyHandlers.js source/Clean.js source/Clipboard.js source/Editor.js source/exports.js source/outro.js
mkdir -p $(@D)
cat $^ | grep -v '^\/\*jshint' >$@
build/squire.js: build/squire-raw.js
./node_modules/uglify-js/bin/uglifyjs $^ -c -m -o $@
build/document.html: source/document.html
mkdir -p $(@D)
cp $^ $@