~ubuntu-branches/ubuntu/raring/blitz++/raring

« back to all changes in this revision

Viewing changes to doc/doxygen/Makefile.am

  • Committer: Bazaar Package Importer
  • Author(s): Konstantinos Margaritis
  • Date: 2005-02-28 20:25:01 UTC
  • mfrom: (2.1.2 hoary)
  • Revision ID: james.westby@ubuntu.com-20050228202501-3i4f2sknnprsqfhz
Tags: 1:0.8-4
Added missing build-depends (Closes: #297323)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
 
 
3
# Support doxygen documentation ?
 
4
 
 
5
docdir = $(datadir)/doc/$(PACKAGE)-$(VERSION)/doxygen
 
6
 
 
7
DISTCLEANFILES = Doxyfile doxygen-warning 
 
8
 
 
9
if DOXYGEN_DOC
 
10
 
 
11
 
 
12
html/index.html: Doxyfile
 
13
        @DOXYGEN@ 
 
14
 
 
15
# Document Targets
 
16
html: html/index.html
 
17
pdf: $(PACKAGE).pdf
 
18
ps: $(PACKAGE).ps
 
19
 
 
20
$(PACKAGE).pdf: html/index.html
 
21
        @if test -d ./latex; then \
 
22
        echo "Making PDF manual"; \
 
23
        if test -f $@; then \
 
24
                $(RM) $@; \
 
25
        fi; \
 
26
                $(MAKE) -C ./latex refman.pdf; \
 
27
                $(LN_S) ./latex/refman.pdf $@; \
 
28
        fi
 
29
 
 
30
$(PACKAGE).ps: html/index.html
 
31
        @if test -d ./latex; then \
 
32
        echo "Making PS manual"; \
 
33
        if test -f $@; then \
 
34
                $(RM) $@; \
 
35
        fi; \
 
36
                $(MAKE) -C ./latex refman.ps; \
 
37
                $(LN_S) ./latex/refman.pdf $@; \
 
38
        fi
 
39
 
 
40
doc: html/index.html
 
41
        @if test -d latex; then \
 
42
                $(MAKE) ps; \
 
43
                $(MAKE) pdf; \
 
44
        fi
 
45
 
 
46
else
 
47
doc:
 
48
endif
 
49
 
 
50
 
 
51
all-local: doc
 
52
 
 
53
 
 
54
# documentation distribution
 
55
doc-dist: doc
 
56
        @if test -d html; then \
 
57
                echo "please wait while archiving the docs."; \
 
58
                tar cf - -C html . | bzip2 --best -c > $(PACKAGE)-docs.tar.bz2; \
 
59
        fi
 
60
 
 
61
# Clean hooks
 
62
clean-local:
 
63
        @if test -f $(PACKAGE).pdf; then \
 
64
                $(RM) -f $(PACKAGE).pdf; \
 
65
        fi
 
66
        @if test -f $(PACKAGE).ps; then \
 
67
                $(RM) -f $(PACKAGE).ps; \
 
68
        fi
 
69
        @if test -d html; then \
 
70
                $(RM) -rf html; \
 
71
        fi
 
72
        @if test -d latex; then \
 
73
                $(RM) -rf latex; \
 
74
        fi
 
75
 
 
76
# Install hooks
 
77
make-install-dirs:
 
78
        @if test '!' -d $(docdir) ; \
 
79
                then mkdir -p $(docdir) ; \
 
80
        fi
 
81
 
 
82
install-data-hook: make-install-dirs
 
83
        @if test -d html; then \
 
84
                echo Installing documentations into $(docdir) ; \
 
85
                $(INSTALL_DATA) html/* $(docdir) ; \
 
86
        fi
 
87
        @if test -f $(PACKAGE).pdf; then \
 
88
                echo Installing PDF manual into $(docdir) ; \
 
89
                $(INSTALL_DATA) $(PACKAGE).pdf $(docdir) ; \
 
90
        fi
 
91
        @if test -f $(PACKAGE).ps; then \
 
92
                echo Installing PS manual into $(docdir) ; \
 
93
                $(INSTALL_DATA) $(PACKAGE).ps $(docdir) ; \
 
94
        fi
 
95