-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
52 lines (38 loc) · 1.31 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
#!/bin/sh
SOURCES = $(shell find ./lib -name '*.js')
TESTS = $(shell find ./test -name '*.js')
all: dependencies
stamp-dependencies:
@touch stamp-dependencies;
@git submodule update --init
dependencies: stamp-dependencies
stamp-devdependencies:
@touch stamp-devdependencies;
@touch stamp-dependencies;
@npm install --dev
devdependencies: stamp-devdependencies
test: devdependencies
@./node_modules/.bin/nodeunit ./test/test-*.js
lint: devdependencies
@./node_modules/.bin/nodelint --config ./nodelint.cfg $(SOURCES) $(TESTS)
./doc/index.html: ./README.markdown devdependencies
./node_modules/.bin/dox \
--title "Node-UBJSON" \
--desc "[ChangeLog](./changelog.html), [Wiki](http://github.com/Sannis/node-ubjson/wiki)." \
--ribbon "http://github.com/Sannis/node-ubjson" \
--ignore-filenames \
./README.markdown \
> ./doc/index.html
./doc/changelog.html: ./CHANGELOG.markdown devdependencies
./node_modules/.bin/dox \
--title "Node-UBJSON" \
--desc "[Home](./index.html), [Wiki](http://github.com/Sannis/node-mysql-ubjson/wiki)." \
--ribbon "http://github.com/Sannis/node-ubjson" \
--ignore-filenames \
./CHANGELOG.markdown \
> ./doc/changelog.html
docs: ./doc/index.html ./doc/changelog.html
pages: docs
@echo "Update gh-pages branch:"
./gh_pages.sh
.PHONY: all test lint docs pages