logo

utils

~/.local/bin tools and git-hooks
commit: a2df2088e4492a9ce23481dda43b334a77f3bbb7
parent: 1548c1e1d85c51f78a0f6161691cd07dda328583
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Mon, 31 Dec 2018 08:51:48 +0100

mkfile: Add support for installing manpages

Diffstat:

Mmkfile2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/mkfile b/mkfile @@ -4,6 +4,7 @@ CFLAGS="-Wpedantic -Wall -Wextra -Wformat -O2 -std=c99 -Wno-unused -Werror=date- PREFIX="/usr/local" BINDIR=$PREFIX"/bin" DOCDIR=$PREFIX"/share/doc/lanodan-utils" +MANDIR=$PREFIX"/share/man" bins=`ls -d src/*.c | sed -e 's;src;bin;' -e 's;\.c$;;'` @@ -12,6 +13,7 @@ all:V: $bins install:V: all for bin in $bins; do cp $bin $BINDIR/; done for doc in doc/*; do cp $doc $DOCDIR/; done + for man in src/*.[1-9]; do cp $man $MANDIR/man${man: -1}/; done clean:V: rm -f $bins