1 |
|
2 | SRC = $(shell find lib -name "*.js")
|
3 | TM_BUNDLE = editors/Stylus.tmbundle
|
4 | TM_BUNDLE_DEST = ~/Library/Application\ Support/TextMate/Bundles
|
5 |
|
6 | test: test-integration
|
7 |
|
8 | test-integration:
|
9 | @node test/run.js
|
10 |
|
11 | docs: docs/index.html
|
12 |
|
13 | docs/index.html: $(SRC)
|
14 | @mkdir -p docs
|
15 | dox \
|
16 | --title "Stylus" \
|
17 | --desc "Expressive, dynamic, robust CSS for nodejs" \
|
18 | --ribbon http://github.com/learnboost/stylus \
|
19 | --private \
|
20 | $^ > $@
|
21 |
|
22 | install-bundle:
|
23 | cp -fr $(TM_BUNDLE) $(TM_BUNDLE_DEST)
|
24 |
|
25 | update-bundle:
|
26 | cp -fr $(TM_BUNDLE_DEST)/Stylus.tmbundle editors
|
27 |
|
28 | .PHONY: test test-integration install-bundle docs update-bundle |
\ | No newline at end of file |