-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMakefile
63 lines (49 loc) · 820 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
.DEFAULT_GOAL := help
.PHONY: build \
clean \
help \
images \
install \
run \
run-and-watch \
scripts \
styles \
templates \
tree \
watch
.SILENT:
# generate assets
build: images scripts styles templates
# clean generated assets
clean:
tasks/clean
# show some help
help:
tasks/help
# compress images
images: tree
tasks/images
# install project dependencies
install:
tasks/install
# start the web server
run: build
tasks/run
# start both run and watch tasks
run-and-watch: build
tasks/run-and-watch
# generate scripts
scripts: tree
tasks/scripts
# generate styles
styles: tree
tasks/styles
# generate templates
templates: tree
tasks/templates
# generate the public file tree
tree:
tasks/tree
# build whenever something changes
watch: build
tasks/watch