miller/man6/Makefile
John Kerl 89f3962757
More neatening of on-line help (#588)
* Continue neatening on-line help
* replace lib.MlrExeName() with "mlr"
* synchronize mlr -l/-L/-f/-F/-k/-K
2021-06-30 20:44:33 -04:00

23 lines
761 B
Makefile

# Respective MANPATH entries would include /usr/local/share/man or $HOME/man.
# This should be run after make in the ../c directory but before make in the ../docs directory,
# since ../go/mlr is used to autogenerate ./manpage.txt which is used in ../docs.
# See also https://miller.readthedocs.io/en/latest/build.html#creating-a-new-release-for-developers
INSTALLDIR=/usr/local/share/man/man1
INSTALLHOME=$(HOME)/man/man1
top: .always
echo mkman start
mkman.rb > mlr6.1
mkman.rb | groff -man -Tascii | col -b | expand -8 > manpage.txt
echo mkman end
# These targets are only for local dev work.
install: top
mkdir -p $(INSTALLDIR)
cp mlr6.1 $(INSTALLDIR)/mlr6.1
installhome: top
mkdir -p $(INSTALLHOME)
cp mlr6.1 $(INSTALLHOME)/mlr6.1
.always:
true