forked from cloudflarearchive/backgrid
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
51 lines (39 loc) · 1.2 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
PROJECT_NAME = backgrid
PROJECT_URL = http://github.com/wyuenho/backgrid
AUTHOR = Jimmy Yuen Ho Wong
DIST_DIR = $(CURDIR)/lib
all: clean doc dist test
FORCE:
build:
$(MAKE) -w -C src build
$(MAKE) -w -C src/extensions build
dist:
mkdir -p lib
$(MAKE) -w -C src dist
$(MAKE) -w -C src/extensions dist
clean:
rm -rf api/*
rm -rf lib/*
$(MAKE) -w -C src clean
$(MAKE) -w -C src/extensions clean
extension:
@read -p "Please specify your extension name: " extension; \
mkdir -p src/extensions/$$extension; \
for filename in .gitignore README.md Makefile backgrid-$$extension.js backgrid-$$extension.css; do \
touch src/extensions/$$extension/$$filename; \
done; \
echo "Extension directory $$extension has been created under src/extensions/$$extension ."; \
touch test/extensions/$$extension.js; \
echo "Test for $$extension has been created in test/$$extension.js .";
doc:
jsduck src/ \
--external=Backbone.Model,Backbone.Collection,Backbone.View,ReferenceError,TypeError,RangeError \
--title=Backgrid.js \
--no-source \
--categories=categories.json \
--warnings=-no_doc \
--pretty-json \
--output api
test: FORCE
phantomjs bin/run-jasmine.js test/index.html
.EXPORT_ALL_VARIABLES: