-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
53 lines (36 loc) · 1.46 KB
/
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
.SECONDARY:
all : build/cpm.js examples/html/cpm.js
# Dependencies are now kept up to date automatically from the file app/include-list.txt
examples/html/cpm.js : build/cpm.js
@cp $< $@
build/cpm.js: rollup.config.js app/index.js misc/uptodate
@echo '...Building package using node_modules/rollup/bin/rollup...' &&\
node_modules/rollup/bin/rollup -c && touch misc/build.make
misc/uptodate : misc/build.make
@$(MAKE) -f $<
misc/build.make: misc/build-makeout.bash app/include-list.txt
@bash $^ > $@
# The app/index.js file is now generated automatically.
app/index.js : app/automatic-index.bash app/include-list.txt
@bash $^ > $@
docs/index.html : build/cpm.js README.md spec $(shell find manual -type f)
@echo '...Writing documentation with ESDOC, please wait...' &&\
node_modules/.bin/esdoc > docs/log.txt && bash misc/fix-docs.bash
docs-examples : examples/html | docs/examples
@cp $</* docs/examples/
docs/examples :
@mkdir -p $@
docs : docs/index.html docs-examples
#cat $< | sed 's:./examples:../examples:g' | sed 's:./docs:../docs:g' > docs/index2.html && \
#mv docs/index2.html docs/index.html
# testing:
test-jasmine :
@echo "...Running automated method tests using jasmine..." &&\
bash misc/run-tests.bash
test-examples :
@echo "...Testing if the examples still work..." &&\
cd examples/build-examples && $(MAKE) -f Makefile test-node-examples
test-all :
@echo "...Running automated tests..." &&\
$(MAKE) -j 1 test-jasmine &&\
$(MAKE) test-examples