From 5666794d51b927cca3dec538abacd67f5f1fcf7a Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Sun, 17 Feb 2019 21:30:00 -0500 Subject: Generate HTML with hi -n -f html -o anchor Running hi twice to insert stuff between the head and the content is a bit of a hack but oh well. --- bin/Makefile | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'bin/Makefile') diff --git a/bin/Makefile b/bin/Makefile index 9fa34ce9..43d2cce1 100644 --- a/bin/Makefile +++ b/bin/Makefile @@ -101,18 +101,16 @@ $(HTMLS): ttpre hi .SUFFIXES: .html .c.html: - @echo '' > $@ - @echo '$(<:%.c=%)' >> $@ + @./hi -f html -o document,anchor,tab=4 -m $< /dev/null > $@ @echo '$< in git' >> $@ man -P cat ./man1/$(<:%.c=%.1) | ./ttpre >> $@ - ./hi -f html -o inline,tab=4 $< >> $@ + ./hi -n -f html -o anchor $< >> $@ .sh.html: - @echo '' > $@ - @echo '$(<:%.sh=%)' >> $@ + @./hi -f html -o document,anchor,tab=4 -m $< /dev/null > $@ @echo '$< in git' >> $@ man -P cat ./man1/$(<:%.sh=%.1) | ./ttpre >> $@ - ./hi -f html -o inline,tab=4 $< >> $@ + ./hi -n -f html -o anchor $< >> $@ clean: rm -f $(BINS_ALL) $(LINKS) tags scheme.h scheme.png *.o *.html -- cgit 1.4.1