File: Makefile.am

package info (click to toggle)
log4cxx 0.9.7-6.1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 4,620 kB
  • ctags: 2,766
  • sloc: cpp: 18,909; sh: 8,896; xml: 1,146; makefile: 480; ansic: 159
file content (69 lines) | stat: -rwxr-xr-x 1,477 bytes parent folder | download | duplicates (2)
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
EXTRA_DIST = Doxyfile mainpage.dox introduction.dox

# DOC is defined if installer requests doc generation.


if DOC

htmldir = $(pkgdatadir)/html
#html_DATA = html/index.html

install-data-hook:
	$(mkinstalldirs) $(DESTDIR)$(htmldir)
	cp -dpR html/* $(DESTDIR)$(htmldir)

# Automake's "distcheck" is sensitive to having files left over
# after "make uninstall", so we have to clean up the install hook.
uninstall-local:
	rm -rf $(DESTDIR)$(htmldir)

dox: html/index.html

if LATEX_DOC

pdf: @PACKAGE@.pdf
@PACKAGE@.pdf:
	$(MAKE) -C ./latex pdf
	ln -s ./latex/refman.ps	 @PACKAGE@.ps
	ln -s ./latex/refman.pdf @PACKAGE@.pdf
	
endif

else

# We repeat the three targets in both the "if" and "else" clauses
# of the conditional, because the generated makefile will contain
# references to the targets (target "install" depends on target
# "install-datahook", for example), and some make programs get upset
# if no target exists.

install-data-hook:
uninstall-local:
dox:

endif


all-local: dox


html/index.html: Doxyfile introduction.dox mainpage.dox
	"@DOXYGEN@"

distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)

# Make tarfile to distribute the HTML documentation.
doc-dist: dox
	rm -rf $(distdir)
	mkdir $(distdir)
	mkdir $(distdir)/docs
	mkdir $(distdir)/docs/html
	cp html/* $(distdir)/docs/html
	tar -czf $(top_builddir)/$(PACKAGE)-docs-$(VERSION).tar.gz -C $(distdir) docs
	rm -rf $(distdir)


clean-local:
	$(RM) -r latex
	$(RM) -r html man @PACKAGE@.ps @PACKAGE@.pdf