forked from commonmark/commonmark.js
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
39 lines (28 loc) · 1.03 KB
/
Makefile
File metadata and controls
39 lines (28 loc) · 1.03 KB
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
ALL=commonmark.js
COMPONENTS=lodash.min.js jquery.min.js jquery.min.map bootstrap.min.js bootstrap.min.css
LIBFILES=../lib/blocks.js ../lib/common.js ../lib/from-code-point.js ../lib/inlines.js ../lib/index.js ../lib/node.js ../lib/render/xml.js ../lib/render/html.js ../lib/render/renderer.js
BOWER=../node_modules/.bin/bower
HTTPSERVER=../node_modules/.bin/http-server
all: $(ALL) components $(COMPONENTS)
.PHONY: all dingus components clean
components:
$(BOWER) install
lodash.min.js: bower_components/lodash
cp $</dist/lodash.min.js $@
jquery.min.js: bower_components/jquery
cp $</dist/$@ $@
jquery.min.map: bower_components/jquery
cp $</dist/$@ $@
bootstrap.min.js: bower_components/bootstrap
cp $</dist/js/$@ $@
bootstrap.min.css: bower_components/bootstrap
cp $</dist/css/$@ $@
clean:
-rm $(ALL) $(COMPONENTS)
rm -r bower_components
commonmark.js: ../lib/index.js $(LIBFILES)
make -C .. test ;\
cp ../dist/commonmark.js commonmark.js
dingus: all
echo "Starting dingus server at http://localhost:9000/"; \
$(HTTPSERVER) -p 9000