added make install target
This commit is contained in:
parent
e7272b56de
commit
689396c8cb
61
Makefile
61
Makefile
@ -1,17 +1,51 @@
|
|||||||
|
# muxsa/Makefile
|
||||||
|
#
|
||||||
|
# part of muxsa, https://git-nks-public.tik.uni-stuttgart.de/edu/muxsa
|
||||||
|
#
|
||||||
|
# MIT License
|
||||||
|
#
|
||||||
|
# Copyright (c) 2025 Sebastian Kiesel <sebastian.kiesel@tik.uni-stuttgart.de>
|
||||||
|
#
|
||||||
|
# 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
|
.PHONY: all clean install
|
||||||
|
|
||||||
GENDOCS := doc/howto.html doc/howto.txt
|
SCRIPTS := bin/muxsa-al2fc \
|
||||||
MANPGS := man/man1/muxsa-kvm2png.1.gz \
|
bin/muxsa-kvm2png \
|
||||||
man/man1/muxsa-al2fc.1.gz \
|
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-pngaac2mp4.1.gz \
|
||||||
man/man1/muxsa-pv.1.gz \
|
man/man1/muxsa-pv.1.gz \
|
||||||
man/man1/muxsa-rl.1.gz \
|
man/man1/muxsa-rl.1.gz \
|
||||||
man/man1/muxsa-vr.1.gz
|
man/man1/muxsa-vr.1.gz
|
||||||
|
|
||||||
all: $(GENDOCS) $(MANPGS)
|
DOCS := doc/howto.md
|
||||||
|
|
||||||
clean:
|
GENDOCS := doc/howto.html \
|
||||||
rm -f $(GENDOCS) $(MANPGS)
|
doc/howto.txt
|
||||||
|
|
||||||
|
all: $(GENDOCS) $(MANPGS)
|
||||||
|
|
||||||
%.html : %.md
|
%.html : %.md
|
||||||
pandoc -f markdown -t html $^ > $@
|
pandoc -f markdown -t html $^ > $@
|
||||||
@ -22,4 +56,17 @@ clean:
|
|||||||
%.1.gz : %.1.md
|
%.1.gz : %.1.md
|
||||||
pandoc --standalone -f markdown -t man $^ | gzip -9 > $@
|
pandoc --standalone -f markdown -t man $^ | gzip -9 > $@
|
||||||
|
|
||||||
install:
|
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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user