-
-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathMakefile
More file actions
20 lines (16 loc) · 689 Bytes
/
Makefile
File metadata and controls
20 lines (16 loc) · 689 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
INSTALL_DIR ?= out
DISCOUNT_BIN ?= discount-theme
FILES := index.html gmscore.html unifiednlp.html download.html fdroid.html $(ADDITIONAL_FILES)
TEMPLATE_PARTS := template/head.tpart.html template/navbar.tpart.html template/footer.tpart.html
DEFAULT_TEMPLATE := template/page.template.html
DATA := favicon.ico robots.txt css fonts img js
DATA_FILES := css/bootstrap.min.css css/default.css js/bootstrap.min.js js/fdroid.js js/jquery-2.2.1.min.js
all: $(FILES)
%.html: %.md $(DEFAULT_TEMPLATE) $(TEMPLATE_PARTS)
$(DISCOUNT_BIN) -t $(DEFAULT_TEMPLATE) $<
clean:
rm -f $(FILES)
rm -rf $(INSTALL_DIR)
install: all $(DATA)
mkdir -p $(INSTALL_DIR)
cp -r $(FILES) $(DATA) $(INSTALL_DIR)