-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
38 lines (28 loc) · 952 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
32
33
34
35
36
37
38
all: build/build.js web/static/js/build.js
purescript/purescript.js: $(wildcard purescript/src/**.purs)
cd purescript; bower install
cd purescript; pulp build --skip-entry-point -m Interpreter --modules Parser --to purescript.js
typescript: ts/tsconfig.json $(wildcard ts/src/**.ts)
cd ts; bower install
cd ts; tsc
build/build.js: build purescript/purescript.js typescript
uglifyjs ts/src/*.js purescript/purescript.js -o build/build.js
web/static/js/build.js: build/build.js web/static/js
cp build/build.js web/static/js/build.js
web/static/js:
mkdir -p web/static/js
build:
mkdir -p build
build/test.js: build/build.js ts/tsconfig-test.json
tsc -p ts/tsconfig-test.json
uglifyjs $< ts/tests/*.js -o $@
test: build/test.js
mocha $<
clean:
rm -r build
rm -r purescript/bower_components
rm -r purescript/output
rm -r purescript/purescript.js
rm -r purescript/.pulp-cache
rm -r ts/src/*.js
.PHONY: all combine typescript clean