# muxsa/Makefile # # part of muxsa, https://git-nks-public.tik.uni-stuttgart.de/edu/muxsa # # MIT License # # Copyright (c) 2025 Sebastian Kiesel # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the "Software"), # to deal in the Software without restriction, including without limitation # the rights to use, copy, modify, merge, publish, distribute, sublicense, # and/or sell copies of the Software, and to permit persons to whom the # Software is furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included # in all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL # THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR # OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, # ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR # OTHER DEALINGS IN THE SOFTWARE. .PHONY: all clean install SCRIPTS := bin/muxsa-al2fc \ bin/muxsa-kvm2png \ bin/muxsa-pngaac2mp4 \ bin/muxsa-pv \ bin/muxsa-rl \ bin/muxsa-vr MANPGS := man/man1/muxsa-al2fc.1.gz \ man/man1/muxsa-kvm2png.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 DOCS := doc/howto.md GENDOCS := doc/howto.html \ doc/howto.txt all: $(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 > $@ clean: rm -f $(GENDOCS) $(MANPGS) install: all set -ex ; for i in $(SCRIPTS) ; do \ install -o root -g root -m 755 $$i ${DESTDIR}/usr/$$i ; \ done set -ex ; for i in $(MANPGS) ; do \ install -o root -g root -m 644 $$i ${DESTDIR}/usr/share/$$i ; \ done set -ex ; for i in $(DOCS) $(GENDOCS) ; do \ install -o root -g root -m 644 $$i \ ${DESTDIR}/usr/share/doc/muxsa/$${i##*/} ; \ done