summary refs log tree commit diff
path: root/bin/Makefile
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-02-12 16:45:22 -0500
committerJune McEnroe <june@causal.agency>2019-02-12 16:45:22 -0500
commit72c8f202f5fbcfea504673de90ef20ffe97330a0 (patch)
treea19ebde61493fb7367c5d3abb8ff59dae99a5d18 /bin/Makefile
parentUse a proper fread-realloc loop in hi (diff)
downloadsrc-72c8f202f5fbcfea504673de90ef20ffe97330a0.tar.gz
src-72c8f202f5fbcfea504673de90ef20ffe97330a0.zip
Unify *up scripts into one up.sh
Diffstat (limited to 'bin/Makefile')
-rw-r--r--bin/Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/bin/Makefile b/bin/Makefile
index ff41e6a1..9fa34ce9 100644
--- a/bin/Makefile
+++ b/bin/Makefile
@@ -19,6 +19,7 @@ BINS += pngo
 BINS += psf2png
 BINS += scheme
 BINS += ttpre
+BINS += up
 BINS += wake
 BINS += xx
 
@@ -106,6 +107,13 @@ $(HTMLS): ttpre hi
 	man -P cat ./man1/$(<:%.c=%.1) | ./ttpre >> $@
 	./hi -f html -o inline,tab=4 $< >> $@
 
+.sh.html:
+	@echo '<!DOCTYPE html>' > $@
+	@echo '<title>$(<:%.sh=%)</title>' >> $@
+	@echo '<code><a href="$(GITEA_URL)/$<">$< in git</a></code>' >> $@
+	man -P cat ./man1/$(<:%.sh=%.1) | ./ttpre >> $@
+	./hi -f html -o inline,tab=4 $< >> $@
+
 clean:
 	rm -f $(BINS_ALL) $(LINKS) tags scheme.h scheme.png *.o *.html