forked from paparitsidis-nci/docroot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
33 lines (27 loc) · 1.12 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
# Prerequisites
# pandoc
#
# sudo apt install pandoc
#
# Parameters and Variables
# https://www.gnu.org/software/make/manual/html_node/Automatic-Variables.html#Automatic-Variables
GENERATED= intro.html second.html
all: $(GENERATED)
# Gerenate html, doc from the html
intro.html: intro.md
pandoc -s --from markdown --to html -o ./dist/[email protected] $< --toc --metadata title="The European Digital Identity Wallet Reference Implementation" --metadata lang="en" --self-contained --css=styles/style.css -F node_modules/mermaid-filter/index.js --lua-filter fix-links-multiple-files.lua
node fix.js ./dist/[email protected] ./dist/$@
second.html: second.md
pandoc -s --from markdown --to html -o ./dist/[email protected] $< --toc --metadata title="The European Digital Identity Wallet Reference Implementation" --metadata lang="en" --self-contained --css=styles/style.css -F node_modules/mermaid-filter/index.js --lua-filter fix-links-multiple-files.lua
node fix.js ./dist/[email protected] ./dist/$@
# Run a local http server
serve:
npx http-server .
prepare:
mkdir -p dist
npm install
npm list
clean:
echo $(GENERATED)
rm -f $(GENERATED) intro.html.docx
rm -f ./dist -R