File: Makefile.am

package info (click to toggle)
capisuite 0.4.5-8
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 4,612 kB
  • ctags: 1,051
  • sloc: cpp: 3,981; sh: 3,465; python: 446; makefile: 265
file content (120 lines) | stat: -rw-r--r-- 4,905 bytes parent folder | download | duplicates (4)
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
docdir = @docdir@
EXTRA_DIST = Doxyfile.in mainpage.doxy manual.docbook manual.README

dist_man_MANS = capisuite.8 capisuite.conf.5 fax.conf.5 answering_machine.conf.5 capisuitefax.1

# dist-hook may be not portable partly, so non-SuSE-users please
# forgive me and don't call "make dist" or send me a patch ;-)

dist-hook: manual-prepare manual-html reference-html capisuite.8 capisuite.conf.5 fax.conf.5 answering_machine.conf.5 capisuitefax.1 manual-pdf
	mkdir $(distdir)/manual
	cp -r $(srcdir)/manual/* $(distdir)/manual/
	mkdir $(distdir)/reference
	cp $(srcdir)/reference/* $(distdir)/reference/
	cp manual.pdf $(distdir)/

manual-de: manual-de-prepare manual-de-html manual-de-pdf

# force recreation of complete manual for dist
recreatedoc:
	touch manual.docbook

manual-prepare: recreatedoc
	sed -e 's,<title>CapiSuite [0-9a-z\.]*</title>,<title>CapiSuite $(VERSION)</title>,g' \
	  manual.docbook > manual.docbook.new
	mv manual.docbook.new manual.docbook
	xmllint --noout --valid manual.docbook

manual-de-prepare: 
	sed -e 's,<title>CapiSuite [0-9a-z\.]*</title>,<title>CapiSuite $(VERSION)</title>,g' \
	  manual-de.docbook > manual-de.docbook.new
	mv manual-de.docbook.new manual-de.docbook
	xmllint --noout --valid manual-de.docbook
	
manual-html: manual.docbook
	xsltproc --stringparam profile.condition html -o manual-profiled.docbook \
	  /usr/share/xml/docbook/stylesheet/nwalsh/current/profiling/profile.xsl \
	  manual.docbook
	xsltproc --stringparam chunker.output.encoding UTF-8 \
	  --stringparam chunker.output.doctype-public "-//W3C//DTD XHTML 1.0 Transitional//EN" \
	  --stringparam chunker.output.doctype-system "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" \
	  -o manual/ /usr/share/xml/docbook/stylesheet/nwalsh/current/xhtml/chunk.xsl manual-profiled.docbook
	rm manual-profiled.docbook
	cp -r /usr/share/xml/docbook/stylesheet/nwalsh/current/images/ manual/ # missing images...
	if test ! -d manual/images/callouts; then \
		echo "manual wasn't created succesful." ;\
		exit 1; \
	fi
	tar czf capisuite-manual-$(VERSION).tar.gz manual

manual-de-html: manual-de.docbook
	xsltproc --stringparam profile.condition html -o manual-profiled.docbook \
	  /usr/share/xml/docbook/stylesheet/nwalsh/current/profiling/profile.xsl \
	  manual-de.docbook
	xsltproc --stringparam chunker.output.encoding UTF-8 \
	  --stringparam chunker.output.doctype-public "-//W3C//DTD XHTML 1.0 Transitional//EN" \
	  --stringparam chunker.output.doctype-system "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" \
	  -o manual-de/ /usr/share/xml/docbook/stylesheet/nwalsh/current/xhtml/chunk.xsl manual-profiled.docbook
	rm manual-profiled.docbook
	cp -r /usr/share/xml/docbook/stylesheet/nwalsh/current/images/ manual-de/ # missing images...
	if test ! -d manual-de/images/callouts; then \
		echo "manual wasn't created succesful." ;\
		exit 1; \
	fi
	tar czf capisuite-manual-de-$(VERSION).tar.gz manual-de
	
capisuite.8 capisuite.conf.5 fax.conf.5 answering_machine.conf.5 capisuitefax.1: manual.docbook
	xsltproc --stringparam profile.condition man -o manual-profiled.docbook \
	  /usr/share/xml/docbook/stylesheet/nwalsh/current/profiling/profile.xsl \
	  manual.docbook
	xsltproc /usr/share/xml/docbook/stylesheet/nwalsh/current/manpages/docbook.xsl \
	  manual-profiled.docbook
	rm manual-profiled.docbook

manual-pdf: manual.docbook
	xsltproc --stringparam profile.condition pdf -o manual.xml \
	  /usr/share/xml/docbook/stylesheet/nwalsh/current/profiling/profile.xsl \
	  manual.docbook
	db2pdf manual.xml 
	-rm CATALOG.local manual.aux manual.log manual.out manual.tex suse-*.dsl manual.xml

manual-de-pdf: manual-de.docbook
	xsltproc --stringparam profile.condition pdf -o manual-de.xml \
	  /usr/share/xml/docbook/stylesheet/nwalsh/current/profiling/profile.xsl \
	  manual-de.docbook
	db2pdf manual-de.xml 
	-rm CATALOG.local manual-de.aux manual-de.log manual-de.out manual-de.tex suse-*.dsl manual-de.xml
	
reference-html: Doxyfile.in
	sed -e 's,@version\@,$(VERSION),g' \
	    -e 's,@capisuite_sources\@,$(top_srcdir)/src,g' \
	    -e 's,@srcdir\@,$(srcdir),g' Doxyfile.in > Doxyfile
	$(doxygen) Doxyfile
	if test ! -d reference; then \
		echo "Creation of reference didn't succeed. Please install doxygen and try again" ;\
		exit 1; \
	fi
	rm Doxyfile
	tar czf capisuite-reference-$(VERSION).tar.gz reference
	
install-data-local:
	if test -d reference; then \
		$(mkinstalldirs) $(DESTDIR)$(docdir)/reference ; \
		(cd reference; for i in *; do \
			$(INSTALL_DATA) $$i $(DESTDIR)$(docdir)/reference/$$i  ;\
		done;) ;\
	fi
	if test -d manual; then \
		$(mkinstalldirs) $(DESTDIR)$(docdir) ; \
		cp -r manual $(DESTDIR)$(docdir)/ ; \
	fi
	if test -f manual.pdf; then \
		cp manual.pdf $(DESTDIR)$(docdir)/ ; \
	fi

uninstall-local:
	-rm -rf $(DESTDIR)$(docdir) 

maintainer-clean-local:
	-rm -rf reference manual manual-de manual.pdf manual-de.pdf *.[1-9]