espial/purs/Makefile
2019-02-06 09:55:49 -06:00

31 lines
743 B
Makefile

.PHONY: clean build
all: build
install:
spago install
build:
@spago build
@spago bundle --to dist/bundle.js
@npm run parcel-build
@rm -f dist/*.gz
@gzip -k dist/app.min.map
@gzip -k dist/app.min.js
@find dist -type f -printf "%kK\\t%h/%f\\n" | sort -k 2
@cp dist/app.min.map ../static/js/app.min.map
@cp dist/app.min.map.gz ../static/js/app.min.map.gz
@cp dist/app.min.js ../static/js/app.min.js
@cp dist/app.min.js.gz ../static/js/app.min.js.gz
docs:
@rm -Rf generated-docs
@purs docs ".spago/*/*/src/**/*.purs" --format html
docset: docs
@(cd docset; python3 ./gen-docset.py)
clean:
rm -f dist/*
# inotifywait -m -r -q -e close_write --format '%T %w%f' --timefmt '%T' src | while read FILE; do echo $FILE; make; done