forked from gcallah/algorithms
-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
33 lines (26 loc) · 817 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
# Need to export as ENV var
export TEMPLATE_DIR = templates
PTML_DIR = ptml
INCS = $(TEMPLATE_DIR)/menu.txt $(TEMPLATE_DIR)/chap_menu.txt $(TEMPLATE_DIR)/lang_menu.txt
HTMLFILES = $(shell ls $(PTML_DIR)/*.ptml | sed -e 's/.ptml/.html/' | sed -e 's/ptml\///')
SUBPROJ_FILES = $(shell ls Algocynfas/*.html)
%.html: $(PTML_DIR)/%.ptml $(INCS)
python3 utils/html_checker.py $<
utils/html_include.awk <$< >$@
website: $(INCS) $(HTMLFILES) $(SUBPROJ_FILES) template
./C++/tests.sh
./Clojure/tests.sh
./Go/tests.sh
./Java/tests.sh
./Javascript/tests.sh
./Ruby/tests.sh
cd Python; ./tests.sh
cd ..
-git commit -a -m "HTML rebuild."
git push origin master
local: template $(INCS) $(HTMLFILES)
template: $(TEMPLATE_DIR)
cd $(TEMPLATE_DIR) ; make all
clean:
rm $(HTMLFILES)
cd $(TEMPLATE_DIR) ; make clean