forked from AmpersandJS/ampersandjs.com
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
33 lines (21 loc) · 768 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
PATH := node_modules/.bin:$(PATH)
SHELL := /bin/bash
STYLUS_FILES := $(shell find ./public/styl -name \*.styl -print)
#All files which aren't generated by running make
HTML_SOURCE_FILES := $(shell find . -not -name "*.css" -not -name "*.html" -not -path "./node_modules/*" -not -path "./.git/*" -type f -print)
# Tasks
.PHONY: update-contributors dist index.html
all: build
serve: all
http-server . -p 8000
# Force rebuild
dist: update-contributors public/css/main.css
node build.js
build: index.html public/css/main.css
index.html: $(HTML_SOURCE_FILES)
node build.js
public/css/main.css: public/styl/main.styl $(STYLUS_FILES)
stylus -I public/styl < $< > $@
update-contributors:
node lib/calculate-contributions.js
node lib/get-core-contributors.js