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
$@
40 cd src
&& $(MAKE
) clean
44 $(EDITOR
) $$(git ls-files | grep
-v
$(IGNFILES
))
52 cd src
&& $(MAKE
) test
56 cd src
&& $(MAKE
) testall
60 @cd src
&& $(MAKE
) -s tlok
64 cd src
&& $(MAKE
) valgrind
68 cd src
&& $(MAKE
) valgrindall