Added new Makefile to the "man" directory. This will handle the logic

for changes, substitutions, and clean-up of the man pages.
For now install instructions are still in the "src" directory
to avoid breaking install scripts.
This commit is contained in:
Jesse
2021-12-27 17:50:25 -04:00
parent 92d4b0e74a
commit a6e80e1133
3 changed files with 17 additions and 1 deletions

13
man/Makefile Normal file
View File

@@ -0,0 +1,13 @@
MANPAGES=bootlogd.8 fstab-decode.8 halt.8 init.8 initctl.5 initscript.5 inittab.5 \
killall5.8 last.1 lastb.1 logsave.8 mesg.1 mountpoint.1 pidof.8 poweroff.8 \
readbootlog.1 reboot.8 runlevel.8 shutdown.8 sulogin.8 telinit.8 utmpdump.1 \
wall.1
all install:
sed --in-place=.orig --separate 's/\@VERSION\@/$(VERSION)/g' $(MANPAGES)
clean distclean:
for man in $(MANPAGES) ; do \
if [ -f "$$man.orig" ] ; then mv "$$man.orig" "$$man" ; fi \
done