-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
16 lines (12 loc) · 965 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
URL_PREFIX:="http://localhost"
ROOT_DIR:=$(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
FRONTEND:=${ROOT_DIR}/frontend
DOCS:=${ROOT_DIR}/docs
TEMPLATES:=${ROOT_DIR}/templates
all: ${FRONTEND}/index.html ${FRONTEND}/api.html
${FRONTEND}/index.html: ${TEMPLATES}/index.tmpl build_frontend.py
python3 build_frontend.py -T "Railway routing map matching job management" -l "https://www.geofabrik.de/geofabrik/imprint.html" -p "https://www.geofabrik.de/geofabrik/imprint.html" -t ${TEMPLATES}/index.tmpl > ${FRONTEND}/index.html
${FRONTEND}/api.html: ${TEMPLATES}/index.tmpl build_frontend.py ${DOCS}/api.md
python3 build_frontend.py -u ${URL_PREFIX} -T "API documentation of the railway routing map matching job management" -l "https://www.geofabrik.de/geofabrik/imprint.html" -p "https://www.geofabrik.de/geofabrik/imprint.html" -t ${TEMPLATES}/index.tmpl -m ${DOCS}/api.md > ${FRONTEND}/api.html
clean:
rm ${FRONTEND}/index.html ${FRONTEND}/api.html