-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathMakefile
50 lines (39 loc) · 1.09 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
42
43
44
45
46
47
48
49
50
PAGES = $(wildcard pages/*.md)
.PHONY: clean view all
#defaulg goal: downloads then builds
all:
tools/pre_process_dl.sh people
make en/index.html
#main build recipe:
#rebuilds if Makefile itself changed
#builds with doxygen, applies patches and post processings
en/index.html: proc/people.md proc/publications.md $(PAGES) Makefile
doxygen
tools/post_process.sh
#module concernign preprocessing people
proc/people.md: pages/people.md
tools/pre_process.sh people
#module concernign preprocessing publications
proc/publications.md: pages/publications.md pages/publications.bib
tools/pre_process.sh publications
clean:
rm -rf en/*
rm -rf proc/*
ls images/K* | grep 'K[0-9]\{7\}[A-Z][0-9].jpg' | xargs rm -f
#simply opens the site in firefox
view:
firefox en/index.html
#rebuilds site with cached pictures
review1:
touch pages/index.md
make en/index.html
firefox en/index.html
#redownloads pictures and rebuilds site
review2:
touch pages/index.md
make all
firefox en/index.html
checksite:
firefox "http://atoms.peq.coppe.ufrj.br"
checkpull:
firefox "https://github.com/atoms-ufrj/atoms_site"