Debian Codegraph @

documentation/userguide/Makefile.in

raw
1 top_srcdir = @top_srcdir@
2 srcdir = @srcdir@
3 VPATH = @srcdir@
4 SHELL = /bin/sh
5
6 # Installation targets
7 #
8 prefix = @prefix@
9 exec_prefix = @exec_prefix@
10 datarootdir = @datarootdir@
11 bindir = @bindir@
12 libdir = @libdir@
13 includedir = @includedir@
14 mandir = @mandir@
15 docdir = @docdir@
16 pdfdir = @pdfdir@
17 mandir = @mandir@
18 man1dir = ${mandir}/man1
19 man1ext = .1
20
21 INFERNAL_VERSION = @INFERNAL_VERSION@
22 INFERNAL_DATE = "@INFERNAL_DATE@"
23 INFERNAL_COPYRIGHT = "@INFERNAL_COPYRIGHT@"
24
25 INSTALL = @INSTALL@
26 RMAN = rman
27 SEDITION = ${top_srcdir}/easel/devkit/sedition
28 RMANPROCESS = ${top_srcdir}/easel/devkit/rmanprocess.pl
29
30 MANPAGES = \
31 ${top_srcdir}/documentation/man/cmalign.man\
32 ${top_srcdir}/documentation/man/cmbuild.man\
33 ${top_srcdir}/documentation/man/cmcalibrate.man\
34 ${top_srcdir}/documentation/man/cmconvert.man\
35 ${top_srcdir}/documentation/man/cmemit.man\
36 ${top_srcdir}/documentation/man/cmfetch.man\
37 ${top_srcdir}/documentation/man/cmpress.man\
38 ${top_srcdir}/documentation/man/cmscan.man\
39 ${top_srcdir}/documentation/man/cmsearch.man\
40 ${top_srcdir}/documentation/man/cmstat.man\
41
42 TEXFILES =\
43 cmbuild.tex\
44 copyright.tex\
45 filter.tex\
46 format_prior.tex\
47 formats.tex\
48 install.tex\
49 intro.tex\
50 macros.tex\
51 main.tex\
52 scores.tex\
53 titlepage.tex\
54 tutorial.tex\
55 diffoptions.tex
56
57 .PHONY: pdf install uninstall clean distclean TAGS
58
59 pdf: Userguide.pdf
60
61 Userguide.pdf: symlinks.stamp titlepage.tex manpages.tex
62 @for prog in pdflatex bibtex; do \
63 command -v $$prog >/dev/null 2>&1 || { echo >&2 "The $$prog program is required to build the Userguide, but it's not installed. Aborting."; exit 1; } \
64 done
65 @echo " LATEX Userguide.pdf (see latex.log for output)"
66 @pdflatex main > latex.log 2>&1
67 @bibtex main >> latex.log 2>&1
68 @pdflatex main >> latex.log 2>&1
69 @pdflatex main >> latex.log 2>&1
70 @mv main.pdf Userguide.pdf
71
72 symlinks.stamp:
73 @if test "x${srcdir}" != "x."; then \
74 for texfile in ${TEXFILES}; do \
75 if ! (test -e $$texfile); then \
76 ln -s ${srcdir}/$$texfile . ;\
77 fi ;\
78 done ;\
79 fi
80 @echo "symlinks created:\c" > $@
81 @date >> $@
82
83 titlepage.tex: ${srcdir}/titlepage.tex.in
84 @cp -f ${srcdir}/titlepage.tex.in titlepage.tex
85 @${SEDITION} INFERNAL_VERSION ${INFERNAL_VERSION} INFERNAL_DATE ${INFERNAL_DATE} titlepage.tex
86
87 # manpages: convert man pages to LaTeX chapter in User Guide.
88 # uses PolyglotMan 3.2 "rman", and rmanprocess.pl script in easel's devkit
89 manpages.tex: ${MANPAGES}
90 @command -v ${RMAN} >/dev/null 2>&1 || { echo >&2 "The ${RMAN} program is required to build the Userguide, but it's not installed. Aborting."; exit 1; }
91 @echo "%% This chapter automatically generated. Do not edit." > manpages.tex
92 @echo "\section{Manual pages}" >> manpages.tex
93 @for file in ${MANPAGES}; do\
94 ${RMAN} -f LaTeX2e $$file 2>/dev/null | ${RMANPROCESS} >> manpages.tex ;\
95 done
96
97 install:
98 ${INSTALL} -m 0644 Userguide.pdf ${DESTDIR}${pdfdir}
99
100 uninstall:
101 -rm -f ${DESTDIR}${pdfdir}/Userguide.pdf
102
103 clean:
104 -rm -f latex.log
105 -rm -f main.aux main.bbl main.blg main.log main.toc x.log *~
106 ifndef V
107 @echo ' ' CLEAN userguide
108 endif
109
110 distclean: clean
111 if test "x${srcdir}" != "x."; then \
112 for texfile in ${TEXFILES}; do \
113 rm -f $$texfile ;\
114 done ;\
115 fi
116 -rm -f symlinks.stamp
117 -rm -f titlepage.tex copyright.tex manpages.tex
118 -rm -f Userguide.pdf
119 -rm -f Makefile
120
121