forked from okrieg/openos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
41 lines (28 loc) · 1.4 KB
/
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
.PHONEY: help build-tb pub-tb clean-tb build-ln pub-ln clean-ln build-lm pub-lm clean-lm build pub clean
help:
# http://marmelab.com/blog/2016/02/29/auto-documented-makefile.html
@grep -E '^[a-zA-Z0-9_%/-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
build: ## build all materials
build: build-tb build-ln build-lm
pub: ## publish all materials to github pages
pub: pub-tb pub-ln pub-lm
clean: ## cleanup/remove all build files
clean: clean-tb clean-ln clean-lm
build-tb: ## build only the textbook
make --no-print-directory -f textbook.mk build
pub-tb: ## publish only the textbook to github pages
make --no-print-directory -f textbook.mk pub
clean-tb: ## cleanup/remove only textbook build files
make --no-print-directory -f textbook.mk clean
build-ln: ## build only the lecture notes
make --no-print-directory -f lecturenotes.mk build
pub-ln: ## publish only the lecture notes to github pages
make --no-print-directory -f lecturenotes.mk pub
clean-ln: ## Cleanup/remove only lecture notes build files
make --no-print-directory -f lecturenotes.mk clean
build-lm: ## build only the lab manual
make --no-print-directory -f labmanual.mk build
pub-lm: ## publish only the lab manual to github pages
make --no-print-directory -f labmanual.mk pub
clean-lm: ## cleanup/remove only lab manual build files
make --no-print-directory -f labmanual.mk clean