-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
31 lines (25 loc) · 979 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
OUTFILE:=static/out.js
deps := prelude maybe monoid arrays eff foldable-traversable newtype \
generics lists transformers integers dom canvas refs localstorage \
jquery
dev-deps := psci-support
all:
pulp build -O | closure-compiler -O SIMPLE > $(OUTFILE)
# init and clean targets work on a project that is fully set up. init
# install all dependencies mentioned in bower.json, and clean removes
# all temporary files generated by psc.
.PHONY: init clean
init:
bower install
clean:
$(RM) -rf bower_components output $(OUTFILE)
# dist-init and dist-clean are meant for settings project from scratch.
# before calling dist-init make sure you've removed all entries from
# dependencies and devDependencies in bower.json. dist-clean doesn't
# do this yet.
.PHONY: dist-init dist-clean
dist-init:
bower install --save $(addprefix purescript-, $(deps))
bower install --save-dev $(addprefix purescript-, $(dev-deps))
dist-clean: clean
$(RM) -rf .psci_modules .pulp-cache