File: Makefile.am

package info (click to toggle)
cddlib 094j-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 4,516 kB
  • sloc: ansic: 9,288; sh: 4,175; makefile: 78
file content (52 lines) | stat: -rw-r--r-- 1,757 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# The Makefile for doc/ is non-standard as we distribute a manual that is
# built from a .tex file (and not a .texi file.)
# We do not want to make latex & pdflatx & dvips requirements for building
# cddlib, so we ship the built manual as part of the distribution.

if LATEX
LATEX_SRC = $(srcdir)/cddlibman.tex $(srcdir)/cddlibman.bbl

# Building twice seems to be enough to get references right.
cddlibman.dvi: ${LATEX_SRC}
	$(latex) $<
	$(latex) $<

if PDF
cddlibman.pdf: ${LATEX_SRC}
	$(pdflatex) $<
	$(pdflatex) $<
endif

if PS
cddlibman.ps: cddlibman.dvi
	$(dvips) cddlibman.dvi
endif

if HTML
# Wipe the HTML output directory as latex2html's perl calls otherwise try to
# find images.pl in there without putting cddlibman into @INC.
# We depend on cddlibman.dvi so we know that the references have been correctly
# resolved in the .aux file.
cddlibman/cddlibman.html: ${LATEX_SRC} html.sty cddlibman.dvi
	rm -rf cddlibman
	$(latex2html) $<
endif

endif

# Include the PDF, PS, and DVI documentation in the distributed tarball.  Note
# that this means that pdflatex & latex & dvips must be available on the system
# where make dist(check) is run.
EXTRA_DIST = $(srcdir)/cddlibman.pdf $(srcdir)/cddlibman.dvi $(srcdir)/cddlibman.ps \
             $(LATEX_SRC) $(srcdir)/html.sty

# Clean up files that are not in the tarball
CLEANFILES = cddlibman.toc cddlibman.aux cddlibman.log
# Clean up files that "make dist" generates
MAINTAINERCLEANFILES = cddlibman.pdf cddlibman.ps cddlibman.dvi
# Change this to maintainer-clean-local if the HTML documentation should be part of the released tarball
clean-local:
	rm -rf cddlibman/

# Install the PDF, PS, and DVI documentation into PREFIX/share/doc/cddlib/
doc_DATA = cddlibman.pdf cddlibman.dvi cddlibman.ps