-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
37 lines (29 loc) · 841 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
34
35
36
37
# Prerequisites
# pandoc
#
# sudo apt install pandoc
#
# Parameters and Variables
# https://www.gnu.org/software/make/manual/html_node/Automatic-Variables.html#Automatic-Variables
GENERATED= arf.html \
arf.docx
all: $(GENERATED)
# Gerenate html, doc from the html
arf.html: arf.md
pandoc -s -o ./dist/$@ $< --toc --metadata title="The European Digital Identity Wallet Architecture and Reference Framework" --metadata lang="en" --self-contained --css=styles/style.css
node fix.js
cd ./dist && cp output.html $@ && rm output.html
pandoc -o ./dist/[email protected] ./dist/$@ --reference-doc=styles/reference.docx
# Generate docx
arf.docx: arf.md
pandoc -o ./dist/$@ $<
# Run a local http server
serve:
npx http-server .
prepare:
mkdir -p dist
npm install
clean:
echo $(GENERATED)
rm -f $(GENERATED) arf.html.docx
rm -f ./dist -R