forked from paulvollmer/node-c4d
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
38 lines (29 loc) · 1018 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
test: test-clean
@node node_modules/.bin/mocha --ui tdd --reporter spec
test-html: test-clean
@node node_modules/.bin/mocha --ui tdd --reporter html-cov > test-coverage.html
test-c4d: test-clean
@echo "\n---> Testing Cinema 4D cli\n\n"
@node bin/c4d -h
@node bin/c4d -V
@echo "\n---> Testing Cinema 4D programmatically\n\n"
@echo "c4d -r test/files/project.c4d\n"
@node bin/c4d -r test/files/project.c4d
@echo "c4d -r test/files/project.c4d --frame 0,2\n"
@node bin/c4d -r test/files/project.c4d --frame 0,2
test-clean:
@rm -f test/report.json
@rm -f test/report.xml
@rm -f test/report.txt
@rm -f test-coverage.html
docs: docs-clean
@echo "Create a new docs directory and generate the documentation."
@mkdir docs
@node node_modules/.bin/jsdoc --destination docs ./src ./README.md
docs-clean:
@rm -rf docs
@echo "Old documentation removed."
clean: test-clean docs-clean
hint:
@node node_modules/.bin/jshint src/ bin/c4d
.PHONY: test test-html test-c4d test-clean docs docs-clean clean hint