2 # Author: Øyvind A. Holm <sunny@sunbase.org>
5 IGNFILES
+= -e ^COPYING
14 echo
'<head>' >>$@.tmp
15 echo
'<meta charset="UTF-8" />' >>$@.tmp
16 echo
'<title>$* - STDexecDTS</title>' >>$@.tmp
17 echo
'</head>' >>$@.tmp
18 echo
'<body>' >>$@.tmp
20 if
test -n
"$$(git log -1 --format=%h $*.md 2>/dev/null)"; then \
21 (echo
'Generated from `$*.md`'; \
22 git log
-1 --format
='revision `%h` (%ci)' \
23 $*.md
) | cmark
>>$@.tmp
; \
25 echo
'</body>' >>$@.tmp
26 echo
'</html>' >>$@.tmp
31 wkhtmltopdf
$*.html
$@.tmp
39 rm -f README.html README.html.tmp
40 rm -f README.pdf README.pdf.tmp
45 $(EDITOR
) $$(git ls-files | grep
-v
$(IGNFILES
))
75 @cd src
&& $(MAKE
) -s
$@