diff options
author | Karl Berry <karl@freefriends.org> | 2021-02-25 19:22:25 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2021-02-25 19:22:25 +0000 |
commit | ad547a6b5986815fda458221149728d9d9ab1d87 (patch) | |
tree | 16296910eb3eca724371474ea9aea3994dc69614 /Build/source/am/man.am | |
parent | 947b43de3dd21d58ccc2ffadefc4441ea1c2a813 (diff) |
restore Build,TODO from r57911
git-svn-id: svn://tug.org/texlive/trunk@57915 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/am/man.am')
-rw-r--r-- | Build/source/am/man.am | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/Build/source/am/man.am b/Build/source/am/man.am new file mode 100644 index 00000000000..bd598ac75a7 --- /dev/null +++ b/Build/source/am/man.am @@ -0,0 +1,52 @@ +## am/man.am: Makefile fragment for kpathsea and web2c manual pages. +## +## Copyright (C) 2009-2014 Peter Breitenlohner <tex-live@tug.org> +## You may freely use, modify and/or distribute this file. +## +## requires $(man_sources) +## requires $(KPATHSEA_PATHS_H) giving the directory of kpathsea/paths.h + +SUFFIXES = .1 .man .ps .dvi + +.man.1: + $(AM_V_GEN)sed -f sedscript $< >$@ +man_files = $(man_sources:.man=.1) +$(man_files): sedscript + +nodist_man1_MANS = $(man_files) + +# At present, all but VERSION should be unused. +sedscript: $(KPATHSEA_PATHS_H)/kpathsea/paths.h + $(AM_V_GEN)( \ + sed -n -e '/^#define/s/#define[ ][ ]*\([A-Z_a-z][A-Z_a-z]*\)[ ][ ]*\(.*\)/s%@\1@%\2%/p' \ + $(KPATHSEA_PATHS_H)/kpathsea/paths.h \ + | sed -e 's/"//g' -e 's/[ ]*\/\*[^*]*\*\///g'; \ + echo 's%@VER''SION@%$(VERSION)%'; \ + echo 's%@BINDIR@%$(bindir)%'; \ + echo 's%@INFODIR@%$(infodir)%'; \ + echo 's%@TEXINPUTDIR@%$(texinputdir)%'; \ + echo 's%@MFINPUTDIR@%$(mfinputdir)%'; \ + echo 's%@MPINPUTDIR@%$(mpinputdir)%'; \ + echo 's%@FONTDIR@%$(fontdir)%'; \ + echo 's%@FMTDIR@%$(fmtdir)%'; \ + echo 's%@BASEDIR@%$(basedir)%'; \ + echo 's%@MEMDIR@%$(memdir)%'; \ + echo 's%@TEXPOOLDIR@%$(texpooldir)%'; \ + echo 's%@MFPOOLDIR@%$(mfpooldir)%'; \ + echo 's%@MPPOOLDIR@%$(mppooldir)%'; \ + echo 's%@FONTMAPDIR@%$(dvipsdir)%'; \ + echo 's%@LOCALMODES@%$(localmodes)%') >sedscript + +DITROFF = groff + +.1.dvi: + $(DITROFF) -Tdvi -man $< >$@ +DVIS = $(man_files:.1=.dvi) + +.1.ps: + $(DITROFF) -Tps -man $< >$@ +PSS = $(man_files:.1=.ps) + +DISTCLEANFILES = sedscript $(man_files) $(DVIS) $(PSS) + +## end of texk/am/man.am |