forked from repo-utils/badgeboard
-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathMakefile
31 lines (23 loc) · 797 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
NODE ?= node
NPM ?= npm
index.html: config.yaml node_modules scripts/* templates/* scripts/db.json
@${NODE} scripts/build.js
# command to rebuild db.json, will be executed
# only once if scripts/db.json isn't present
scripts/db.json:
@${NODE} --harmony scripts/make-db.js
# `make db` will force rebuilding db.json even if it exists
db:
@${MAKE} --always-make scripts/db.json
# removes autogenerated files
clean:
rm scripts/db.json index.html
# install all packages if they don't exist (repo just been cloned)
node_modules: package.json
@${NPM} install .
help:
@echo 'make - make index.html'
@echo 'make db - download stuff from other servers'
@echo 'make clean - remove autogenerated files'
@echo 'make help - print this message (try that again)'
.PHONY: db clean help