blob: 6648f11061ced529c55b1fc517f8c340d9f1df02 (
plain)
1 outdir=out
2 style=resume.css
3 html=$(outdir)/resume.html
4
5 .SILENT : help
6
7 .DEFAULT: md-html5
8
9 md-html5: setup
10 cp res/header.html $(html)
11 cat res/style-header.css >> $(html)
12 cat res/style-markdown.css >> $(html)
13 printf '</style>\n</head>\n<body><div id="resume">\n' >> $(html)
14 cmark --unsafe resume.md >> $(html)
15 printf '</div></body>\n</html>\n' >> $(html)
16
17 clean:
18 rm -rv $(outdir)/*
19
20 setup:
21 if [ ! -d $(outdir) ]; then mkdir $(outdir); fi
22
23 help:
24 echo -e '\n'\
25 'Make options:\n' \
26 'all: Makes html5 document\n' \
27 'embed: Make html document with embedded styles (more portable than xhtml)\n'
|