summaryrefslogtreecommitdiff
path: root/Makefile
blob: 3e8c9571258cb5ca986cec3a9a6390ea3dbfb5e2 (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:
   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>\n' >> $(html)
   14 	cmark --unsafe resume.md  >> $(html)
   15 	printf '</body>\n</html>\n' >> $(html)
   16 
   17 rst-html5:
   18 	rst2html5.py --stylesheet=$(style) resume.rst $(html)
   19 
   20 clean:
   21 	rm -rv $(outdir)/*
   22 
   23 setup:
   24 	if [ ! -d $(outdir) ]; then mkdir $(outdir); fi
   25 
   26 help:
   27 	echo -e '\n'\
   28 	'Make options:\n' \
   29 	'all: Makes html5 document\n' \
   30 	'embed: Make html document with embedded styles (more portable than xhtml)\n'

Generated by cgit