diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2009-03-19 13:59:30 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2009-03-19 13:59:30 +0000 |
commit | 0b7b2c69ec83497d9accab064da0f4ad07662d42 (patch) | |
tree | e8f22a2acecbf3035850f56beb1c8161c53cdf2d /Build/source/texk/am | |
parent | ee507bbd1fc483c58acb33cca25509a4dd81df9b (diff) |
prepare for new build system
git-svn-id: svn://tug.org/texlive/trunk@12429 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/am')
-rw-r--r-- | Build/source/texk/am/man.am | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/Build/source/texk/am/man.am b/Build/source/texk/am/man.am new file mode 100644 index 00000000000..8e2ad41d04d --- /dev/null +++ b/Build/source/texk/am/man.am @@ -0,0 +1,50 @@ +## texk/am/man.am: Makefile fragment for kpathsea and web2c manual pages. +## requires $(man_sources), $(EXTRA_DIST), and $(DISTCLEANFILES) +## requires $(KPATHSEA_PATHS_H) giving the directory of kpathsea/paths.h + +SUFFIXES = .1 .man .ps .dvi + +.man.1: + 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 + cp /dev/null sedscript + sed -n -e '/^#define/s/#define[ ][ ]*\([A-Z_a-z][A-Z_a-z]*\)[ ][ ]*\(.*\)/s%@\1@%\2%/p' \ + $< \ + | sed -e 's/"//g' -e 's/[ ]*\/\*[^*]*\*\///g' >>sedscript + echo 's%@VER''SION@%$(VERSION)%' >>sedscript + echo 's%@BINDIR@%$(bindir)%' >>sedscript + echo 's%@INFODIR@%$(infodir)%' >>sedscript + echo 's%@TEXINPUTDIR@%$(texinputdir)%' >>sedscript + echo 's%@MFINPUTDIR@%$(mfinputdir)%' >>sedscript + echo 's%@MPINPUTDIR@%$(mpinputdir)%' >>sedscript + echo 's%@FONTDIR@%$(fontdir)%' >>sedscript + echo 's%@FMTDIR@%$(fmtdir)%' >>sedscript + echo 's%@BASEDIR@%$(basedir)%' >>sedscript + echo 's%@MEMDIR@%$(memdir)%' >>sedscript + echo 's%@TEXPOOLDIR@%$(texpooldir)%' >>sedscript + echo 's%@MFPOOLDIR@%$(mfpooldir)%' >>sedscript + echo 's%@MPPOOLDIR@%$(mppooldir)%' >>sedscript + echo 's%@FONTMAPDIR@%$(dvipsdir)%' >>sedscript + 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) + +EXTRA_DIST += $(man_sources) + +DISTCLEANFILES += sedscript $(man_files) $(DVIS) $(PSS) + +## end of texk/am/man.am |