M INSTALL => INSTALL +2 -2
@@ 43,6 43,6 @@ Replace gcc in CC with cc and add -D_BSD_SOURCE, eg:
-D_XOPEN_SOURCE=700 -D_BSD_SOURCE}' \
./do install
-and change MANDIR to
+and change MANPREFIX to
- MANDIR=$PREFIX/man/man1
+ MANPREFIX=$PREFIX/man
M config.redo => config.redo +2 -2
@@ 2,10 2,10 @@ PREFIX=${PREFIX:-/usr/local}
BINDIR=$PREFIX/bin
DOCDIR=$PREFIX/share/doc/reflow
-MANDIR=$PREFIX/share/man/man1
+MANPREFIX=$PREFIX/share/man
# OpenBSD
-#MANDIR=$PREFIX/man/man1
+#MANPREFIX=$PREFIX/man
PROGS="reflow"
DOCS="README LICENSE"
M install.do => install.do +2 -2
@@ 1,6 1,6 @@
redo-ifchange all
. ./config.redo
-install -d "$DOCDIR" "$BINDIR" "$MANDIR"
+install -d "$DOCDIR" "$BINDIR" "${MANPREFIX}/man1"
for docfile in $DOCS; do
install -Dm 0644 "${docfile}" "${DOCDIR}/${docfile}"
done
@@ 8,5 8,5 @@ for binfile in $PROGS; do
install -Dm 0755 "${binfile}" "${BINDIR}/${binfile}"
done
for manfile in $MANPAGES; do
- install -Dm 0644 "${manfile}" "${MANDIR}/${manfile}"
+ install -Dm 0644 "${manfile}" "${MANPREFIX}/man1/${manfile}"
done
M uninstall.do => uninstall.do +1 -1
@@ 6,5 6,5 @@ for binfile in $PROGS; do
rm -f "${BINDIR}/${binfile}"
done
for manfile in $MANPAGES; do
- rm -f "${MANDIR}/${manfile}"
+ rm -f "${MANPREFIX}/man1/${manfile}"
done