all repos — fluxbox @ 6beb1f96b25cd4ce23395d6666aa8ea22038817e

custom fork of the fluxbox windowmanager

Process all asciidoc-generated man pages with sed

This makes things a bit simpler and more generic.
Jim Ramsay i.am@jimramsay.com
commit

6beb1f96b25cd4ce23395d6666aa8ea22038817e

parent

bd8275b33cec5b0765b93e8905bfefcdfd994b73

M doc/Makefile.amdoc/Makefile.am

@@ -2,17 +2,14 @@ # doc/Makefile.am for Fluxbox 0.9 - an X11 Window manager

# Makefile.am for fluxbox/doc SUBDIRS = ru -CLEANFILES = fluxbox.1 fluxbox-style.5 +CLEANFILES = fluxbox.1 fluxbox-apps.5 fluxbox-keys.5 fluxbox-remote.1 fluxbox-style.5 MAINTAINERCLEANFILES = Makefile.in -man_MANS = fluxbox.1 fbsetroot.1 fbrun.1 fbsetbg.1 \ - startfluxbox.1 fluxbox-style.5 fluxbox-keys.5 fluxbox-apps.5 fluxbox-remote.1 -EXTRA_DIST=fluxbox.1.in fbsetroot.1 fbrun.1 fluxbox-keys.5 fluxbox-apps.5 fluxbox-remote.1 startfluxbox.1 fbsetbg.1 \ - fluxbox-style.5.in CODESTYLE +man_MANS = fbsetroot.1 fbrun.1 fbsetbg.1 startfluxbox.1 \ + fluxbox.1 fluxbox-apps.5 fluxbox-keys.5 fluxbox-remote.1 fluxbox-style.5 +EXTRA_DIST=fbsetroot.1 fbrun.1 fbsetbg.1 startfluxbox.1 CODESTYLE \ + fluxbox.1.in fluxbox-apps.5.in fluxbox-keys.5.in fluxbox-remote.1.in fluxbox-style.5.in distclean-local: rm -f *\~ -fluxbox.1: fluxbox.1.in - @regex_cmd@ -e "s,@pkgdatadir@,$(pkgdatadir)," $(srcdir)/fluxbox.1.in > fluxbox.1 - -fluxbox-style.5: fluxbox-style.5.in - @regex_cmd@ -e "s,@pkgdatadir@,$(pkgdatadir)," $(srcdir)/fluxbox-style.5.in > fluxbox-style.5 +%: %.in + @regex_cmd@ -e "s,@pkgdatadir@,$(pkgdatadir)," $^ > $@
M doc/asciidoc/Makefiledoc/asciidoc/Makefile

@@ -2,24 +2,33 @@ #

# create manpages from the asciidoc files # -SRC1 = fluxbox.txt fluxbox-keys.txt fluxbox-remote.txt +SRC1 = fluxbox.txt fluxbox-remote.txt SRC5 = fluxbox-keys.txt fluxbox-apps.txt fluxbox-style.txt -MAN = $(SRC1:.txt=.1) $(SRC5:.txt=.5) +MAN = $(SRC1:.txt=.1.in) $(SRC5:.txt=.5.in) + +all: $(MAN) -all : $(MAN) +install-above: all + cp $(MAN) ../ clean: rm -fv $(MAN) -%.xml : %.txt - asciidoc -b docbook -d manpage -o $@ $< - %.1 : %.xml xmlto man $< %.5 : %.xml xmlto man $< + +%.1.in: %.1 + cp $< $@ + +%.5.in: %.5 + cp $< $@ + +%.xml : %.txt + asciidoc -b docbook -d manpage -o $@ $< # Dependencies: #