diff options
author | June McEnroe <june@causal.agency> | 2019-02-12 16:45:22 -0500 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2019-02-12 16:45:22 -0500 |
commit | e6c20f61387a85a5b15a79b5474f710e5878c6b3 (patch) | |
tree | 09f679c946641b22b96e96046e57d6eaad82f372 /bin/Makefile | |
parent | Use a proper fread-realloc loop in hi (diff) | |
download | src-e6c20f61387a85a5b15a79b5474f710e5878c6b3.tar.gz src-e6c20f61387a85a5b15a79b5474f710e5878c6b3.zip |
Unify *up scripts into one up.sh
Diffstat (limited to 'bin/Makefile')
-rw-r--r-- | bin/Makefile | 8 |
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 |