diff --git a/Makefile b/Makefile index 64a7384..948d048 100644 --- a/Makefile +++ b/Makefile @@ -3,6 +3,7 @@ VERSION=$(shell sed -rn '1s/.*[[:blank:]]\((.*)\)[[:blank:]].*/\1/p' doc/Changel all install clean distclean: @rm -f $(PACKAGE)-$(VERSION).tar.xz $(PACKAGE)-$(VERSION).tar.xz.sig + $(MAKE) VERSION=$(VERSION) -C man $@ $(MAKE) VERSION=$(VERSION) -C src $@ GITLOGIN=$(shell git remote -v | head -n 1 | cut -f 1 -d '@' | sed 's/origin\t//g') @@ -42,3 +43,4 @@ $(TMP)/$(PACKAGE)-$(VERSION): distclean @cp -R $(SOURCES) $(TMP)/$(PACKAGE)-$(VERSION)/ @chmod -R a+r,u+w,og-w $@ @find $@ -type d | xargs -r chmod a+rx,u+w,og-w + diff --git a/doc/Changelog b/doc/Changelog index 1165375..46e099b 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -2,7 +2,8 @@ * Applied fixes for markup and spacing in manual pages. Patch provided by Mario Blattermann. * Added translation framework (po4a) from Mario Blttermann. - + * Added Makefile for man/ directory. Will handle translations + and substitutions. sysvinit (3.01) released; urgency=low * Default to showing processes in the uninterruptable state (D). diff --git a/man/Makefile b/man/Makefile new file mode 100644 index 0000000..8c13142 --- /dev/null +++ b/man/Makefile @@ -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 +