-
Notifications
You must be signed in to change notification settings - Fork 32
/
Makefile
37 lines (26 loc) · 845 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
all: build | silent
build: node_modules
@node index.js $(DEPLOY) $(CHECK)
@while [ -n "$$(find .build -depth -type d -empty -print -exec rmdir {} +)" ]; do :; done
@rsync -rlpgoDc --delete .build/ build
@rm -rf .build
install: node_modules
@node index.js . --check --deploy --quiet
@while [ -n "$$(find .build -depth -type d -empty -print -exec rmdir {} +)" ]; do :; done
deploy: DEPLOY = --deploy
deploy: check build
check: CHECK = --check
check: build
node_modules: package.json
@npm install --progress=false
silent:
@:
run:
./node_modules/http-server/bin/http-server build -p 8081 -a 127.0.0.1
clean:
@rm -rf .build build
statics:
@wget https://www.google-analytics.com/analytics.js -O src/js/analytics.js 2>/dev/null
findspace:
@find src lib -type f -exec egrep -Il " +$$" {} \;
.PHONY: run clean silent build install