add man pages and Makefile to build them
This commit is contained in:
25
Makefile
Normal file
25
Makefile
Normal 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:
|
Reference in New Issue
Block a user