add man pages and Makefile to build them

This commit is contained in:
2025-02-15 16:44:46 +01:00
parent 4ac2a9f6d8
commit e7272b56de
7 changed files with 447 additions and 0 deletions

25
Makefile Normal file
View File

@@ -0,0 +1,25 @@
.PHONY: all clean install
GENDOCS := doc/howto.html doc/howto.txt
MANPGS := man/man1/muxsa-kvm2png.1.gz \
man/man1/muxsa-al2fc.1.gz \
man/man1/muxsa-pngaac2mp4.1.gz \
man/man1/muxsa-pv.1.gz \
man/man1/muxsa-rl.1.gz \
man/man1/muxsa-vr.1.gz
all: $(GENDOCS) $(MANPGS)
clean:
rm -f $(GENDOCS) $(MANPGS)
%.html : %.md
pandoc -f markdown -t html $^ > $@
%.txt : %.md
pandoc -f markdown -t plain $^ > $@
%.1.gz : %.1.md
pandoc --standalone -f markdown -t man $^ | gzip -9 > $@
install: