diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2017-05-12 02:05:36 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2017-05-12 02:05:36 -0400 |
commit | fc1ec14951cf3ebfc5a37df1f1b06fa3adac29bc (patch) | |
tree | f83556404a16a8c23a463cbfd20eb9903ddc4d09 /build-aux | |
parent | b3818c47a4561989cea9b4cbe61d61c27cab459f (diff) |
dependency tracking for manpages
Diffstat (limited to 'build-aux')
-rw-r--r-- | build-aux/Makefile.each.tail/70-sdman.mk | 18 | ||||
-rw-r--r-- | build-aux/Makefile.once.head/20-sdman.mk | 38 |
2 files changed, 12 insertions, 44 deletions
diff --git a/build-aux/Makefile.each.tail/70-sdman.mk b/build-aux/Makefile.each.tail/70-sdman.mk index fa490a8677..d86f61e2e4 100644 --- a/build-aux/Makefile.each.tail/70-sdman.mk +++ b/build-aux/Makefile.each.tail/70-sdman.mk @@ -52,22 +52,4 @@ endif # ENABLE_MANPAGES at.subdirs += $(abspath $(topoutdir)/man) -$(outdir)/%.1: $(srcdir)/%.xml $(topsrcdir)/man/custom-man.xsl $(topoutdir)/man/custom-entities.ent - $(_sdman.XSLTPROC_PROCESS_MAN) - -$(outdir)/%.3: $(srcdir)/%.xml $(topsrcdir)/man/custom-man.xsl $(topoutdir)/man/custom-entities.ent - $(_sdman.XSLTPROC_PROCESS_MAN) - -$(outdir)/%.5: $(srcdir)/%.xml $(topsrcdir)/man/custom-man.xsl $(topoutdir)/man/custom-entities.ent - $(_sdman.XSLTPROC_PROCESS_MAN) - -$(outdir)/%.7: $(srcdir)/%.xml $(topsrcdir)/man/custom-man.xsl $(topoutdir)/man/custom-entities.ent - $(_sdman.XSLTPROC_PROCESS_MAN) - -$(outdir)/%.8: $(srcdir)/%.xml $(topsrcdir)/man/custom-man.xsl $(topoutdir)/man/custom-entities.ent - $(_sdman.XSLTPROC_PROCESS_MAN) - -$(outdir)/%.html: $(srcdir)/%.xml $(topsrcdir)/man/custom-html.xsl $(topoutdir)/man/custom-entities.ent - $(_sdman.XSLTPROC_PROCESS_HTML) - endif # _sdman.man_xml diff --git a/build-aux/Makefile.once.head/20-sdman.mk b/build-aux/Makefile.once.head/20-sdman.mk index bef7717511..c959f12545 100644 --- a/build-aux/Makefile.once.head/20-sdman.mk +++ b/build-aux/Makefile.once.head/20-sdman.mk @@ -40,18 +40,16 @@ define mod.sdman.doc # - Directory variable : `files.src.gen` # - Directory variable : `man_MANS` # - Directory variable : `noinst_DATA` (HTML) -# - Target : `$(outdir)/%.1` -# - Target : `$(outdir)/%.3` -# - Target : `$(outdir)/%.5` -# - Target : `$(outdir)/%.7` -# - Target : `$(outdir)/%.8` -# - Target : `$(outdir)/%.html` # # sdman -> Makefile-man.mk: +# - Global variable : `sdman.man-xslt` +# - Global variable : `sdman.man-alias` +# - Global variable : `sdman.html-xslt` # - Global variable : `sdman.html-alias` # Makefile-man.mk -> sdman: # - Directory variable : `sdman.MANPAGES` # - Directory variable : `sdman.MANPAGES_ALIAS` +# - Targets : ... # # The `sdman.*` variables are the interface by which the module # communicates with the genrated Makefile-man.mk file. They should not @@ -67,10 +65,10 @@ AM_V_LN_ ?= $(AM_V_LN_$(AM_DEFAULT_VERBOSITY)) AM_V_LN_0 ?= @echo " LN " $@; AM_V_LN_1 ?= -AM_V_SOELIM ?= $(AM_V_SOELIM_$(V)) -AM_V_SOELIM_ ?= $(AM_V_SOELIM_$(AM_DEFAULT_VERBOSITY)) -AM_V_SOELIM_0 ?= @echo " SOELIM " $@; -AM_V_SOELIM_1 ?= +AM_V_SOALIAS ?= $(AM_V_SOALIAS_$(V)) +AM_V_SOALIAS_ ?= $(AM_V_SOALIAS_$(AM_DEFAULT_VERBOSITY)) +AM_V_SOALIAS_0 ?= @echo " SOALIAS " $@; +AM_V_SOALIAS_1 ?= AM_V_XSLT ?= $(AM_V_XSLT_$(V)) AM_V_XSLT_ ?= $(AM_V_XSLT_$(AM_DEFAULT_VERBOSITY)) @@ -88,20 +86,8 @@ _sdman.XSLTPROC_FLAGS = \ --path '$(outdir):$(srcdir):$(topoutdir)/man:$(topsrcdir)/man' _sdman.XSLT = $(if $(XSLTPROC), $(XSLTPROC), xsltproc) -_sdman.XSLTPROC_PROCESS_MAN = \ - $(AM_V_XSLT)$(_sdman.XSLT) -o $@ $(_sdman.XSLTPROC_FLAGS) $(srcdir)/man/custom-man.xsl $< -_sdman.XSLTPROC_PROCESS_HTML = \ - $(AM_V_XSLT)$(_sdman.XSLT) -o $@ $(_sdman.XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $< - -# Because the docbooc-xsl authors are assholes, they ignore everything but the -# directory of '-o' and instead choose filenames in it based on <refname> -# elements, with no option to override that from the command line. This is a -# nice feature, until we have to rectify it with Make's poor support for -# commands with multiple outputs. So, we'll let it do its thing, but have a -# rule for manually re-creating an alias without re-running xsltproc in case it -# gets removed. -sdman.man-alias = \ - $(AM_V_LN)$(PRINTF) '.so %s\n' $(<F) > $@ -sdman.html-alias = \ - $(AM_V_LN)$(LN_S) -f $(<F) $@ +sdman.man-xslt = $(AM_V_XSLT)$(_sdman.XSLT) -o $@ $(_sdman.XSLTPROC_FLAGS) $(srcdir)/man/custom-man.xsl $< +sdman.man-alias = $(AM_V_SOALIAS)$(PRINTF) '.so %s\n' $(<F) > $@ +sdman.html-xslt = $(AM_V_XSLT)$(_sdman.XSLT) -o $@ $(_sdman.XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $< +sdman.html-alias = $(AM_V_LN)$(LN_S) -f $(<F) $@ |