1 | ## Process this file with automake to create Makefile.in. |
---|
2 | |
---|
3 | NULL= |
---|
4 | |
---|
5 | # The name of the module. |
---|
6 | DOC_MODULE=bonobo-activation |
---|
7 | |
---|
8 | # The top-level SGML file. |
---|
9 | DOC_MAIN_SGML_FILE=bonobo-activation.sgml |
---|
10 | |
---|
11 | # The directory containing the source code. Relative to $(srcdir) |
---|
12 | DOC_SOURCE_DIR=../bonobo-activation |
---|
13 | |
---|
14 | # Extra options to supply to gtkdoc-scan |
---|
15 | SCAN_OPTIONS= |
---|
16 | |
---|
17 | # Extra options to supply to gtkdoc-mkdb |
---|
18 | MKDB_OPTIONS=--sgml-mode |
---|
19 | |
---|
20 | # Extra options to supply to gtkdoc-fixref |
---|
21 | FIXXREF_OPTIONS= |
---|
22 | |
---|
23 | # Used for dependencies |
---|
24 | HFILE_GLOB=$(top_srcdir)/bonobo-activation/*.h |
---|
25 | CFILE_GLOB=$(top_srcdir)/bonobo-activation/*.c |
---|
26 | |
---|
27 | # Headers to ignore |
---|
28 | IGNORE_HFILES= \ |
---|
29 | Bonobo_ObjectDirectory.h \ |
---|
30 | Bonobo_ActivationContext.h \ |
---|
31 | bonobo-activation-i18n.h \ |
---|
32 | bonobo-activation-private.h \ |
---|
33 | bonobo-activation-activate-private.h |
---|
34 | |
---|
35 | # Extra files to add when scanning |
---|
36 | EXTRA_HFILES= |
---|
37 | |
---|
38 | # Images to copy into HTML directory |
---|
39 | HTML_IMAGES = \ |
---|
40 | bonobo-activation.png \ |
---|
41 | $(NULL) |
---|
42 | |
---|
43 | # Non-autogenerated SGML files to be included in $(DOC_MAIN_SGML_FILE) |
---|
44 | content_files = \ |
---|
45 | tutorial.sgml \ |
---|
46 | migrating.sgml \ |
---|
47 | server-xml-reference.sgml \ |
---|
48 | configuring.sgml \ |
---|
49 | query-langage.sgml \ |
---|
50 | architecture.sgml \ |
---|
51 | bonobo-activation.sgml \ |
---|
52 | fdl.sgml \ |
---|
53 | $(NULL) |
---|
54 | |
---|
55 | ## extra dist stuff |
---|
56 | extra_files = |
---|
57 | |
---|
58 | # CFLAGS and LDFLAGS for compiling scan program. Only needed |
---|
59 | # if $(DOC_MODULE).types is non-empty. |
---|
60 | GTKDOC_CFLAGS = |
---|
61 | GTKDOC_LIBS = |
---|
62 | |
---|
63 | # Commands for compiling and linking |
---|
64 | GTKDOC_CC=$(LIBTOOL) --mode=compile $(CC) |
---|
65 | GTKDOC_LD=$(LIBTOOL) --mode=link $(CC) |
---|
66 | |
---|
67 | # FIXME: what is this? -- jacob |
---|
68 | #dist-hook-local: |
---|
69 | # mkdir $(distdir)/TEXT; \ |
---|
70 | # for f in $(srcdir)/TEXT/* ; do \ |
---|
71 | # test -f $$f && cp -p $$f $(distdir)/TEXT; \ |
---|
72 | # done |
---|
73 | |
---|
74 | |
---|
75 | #################################### |
---|
76 | # Everything below here is generic # |
---|
77 | #################################### |
---|
78 | |
---|
79 | # We set GPATH here; this gives us semantics for GNU make |
---|
80 | # which are more like other make's VPATH, when it comes to |
---|
81 | # whether a source that is a target of one rule is then |
---|
82 | # searched for in VPATH/GPATH. |
---|
83 | # |
---|
84 | GPATH = $(srcdir) |
---|
85 | |
---|
86 | TARGET_DIR=$(HTML_DIR)/$(DOC_MODULE) |
---|
87 | |
---|
88 | EXTRA_DIST = \ |
---|
89 | $(content_files) \ |
---|
90 | $(extra_files) \ |
---|
91 | $(HTML_IMAGES) \ |
---|
92 | $(DOC_MAIN_SGML_FILE) \ |
---|
93 | $(DOC_MODULE).types \ |
---|
94 | $(DOC_MODULE)-sections.txt \ |
---|
95 | $(DOC_MODULE)-overrides.txt |
---|
96 | |
---|
97 | DOC_STAMPS=scan-build.stamp tmpl-build.stamp sgml-build.stamp html-build.stamp \ |
---|
98 | $(srcdir)/tmpl.stamp $(srcdir)/sgml.stamp $(srcdir)/html.stamp |
---|
99 | |
---|
100 | SCANOBJ_FILES = \ |
---|
101 | $(DOC_MODULE).args \ |
---|
102 | $(DOC_MODULE).hierarchy \ |
---|
103 | $(DOC_MODULE).signals |
---|
104 | |
---|
105 | if ENABLE_GTK_DOC |
---|
106 | all-local: html-build.stamp |
---|
107 | |
---|
108 | #### scan #### |
---|
109 | |
---|
110 | scan-build.stamp: $(HFILE_GLOB) |
---|
111 | @echo '*** Scanning header files ***' |
---|
112 | if grep -l '^..*$$' $(srcdir)/$(DOC_MODULE).types > /dev/null ; then \ |
---|
113 | CC="$(GTKDOC_CC)" LD="$(GTKDOC_LD)" CFLAGS="$(GTKDOC_CFLAGS)" LDFLAGS="$(GTKDOC_LIBS)" gtkdoc-scangobj --module=$(DOC_MODULE) --output-dir=$(srcdir) ; \ |
---|
114 | else \ |
---|
115 | cd $(srcdir) ; \ |
---|
116 | for i in $(SCANOBJ_FILES) ; do \ |
---|
117 | test -f $$i || touch $$i ; \ |
---|
118 | done \ |
---|
119 | fi |
---|
120 | cd $(srcdir) && \ |
---|
121 | gtkdoc-scan --module=$(DOC_MODULE) --source-dir=$(DOC_SOURCE_DIR) --ignore-headers="$(IGNORE_HFILES)" $(SCAN_OPTIONS) $(EXTRA_HFILES) |
---|
122 | touch scan-build.stamp |
---|
123 | |
---|
124 | $(DOC_MODULE)-decl.txt $(SCANOBJ_FILES): scan-build.stamp |
---|
125 | @true |
---|
126 | |
---|
127 | #### templates #### |
---|
128 | |
---|
129 | tmpl-build.stamp: $(DOC_MODULE)-decl.txt $(SCANOBJ_FILES) $(DOC_MODULE)-sections.txt $(DOC_MODULE)-overrides.txt |
---|
130 | @echo '*** Rebuilding template files ***' |
---|
131 | cd $(srcdir) && gtkdoc-mktmpl --module=$(DOC_MODULE) |
---|
132 | touch tmpl-build.stamp |
---|
133 | |
---|
134 | tmpl.stamp: tmpl-build.stamp |
---|
135 | @true |
---|
136 | |
---|
137 | #### sgml #### |
---|
138 | |
---|
139 | sgml-build.stamp: tmpl.stamp $(CFILE_GLOB) $(srcdir)/tmpl/*.sgml |
---|
140 | @echo '*** Building SGML ***' |
---|
141 | cd $(srcdir) && \ |
---|
142 | gtkdoc-mkdb --module=$(DOC_MODULE) --source-dir=$(DOC_SOURCE_DIR) $(MKDB_OPTIONS) |
---|
143 | touch sgml-build.stamp |
---|
144 | |
---|
145 | sgml.stamp: sgml-build.stamp |
---|
146 | @true |
---|
147 | |
---|
148 | #### html #### |
---|
149 | |
---|
150 | html-build.stamp: sgml.stamp $(DOC_MAIN_SGML_FILE) $(content_files) |
---|
151 | @echo '*** Building HTML ***' |
---|
152 | rm -rf $(srcdir)/html |
---|
153 | mkdir $(srcdir)/html |
---|
154 | cd $(srcdir)/html && gtkdoc-mkhtml $(DOC_MODULE) ../$(DOC_MAIN_SGML_FILE) |
---|
155 | test "x$(HTML_IMAGES)" = "x" || ( cd $(srcdir) && cp $(HTML_IMAGES) html ) |
---|
156 | @echo '-- Fixing Crossreferences' |
---|
157 | cd $(srcdir) && gtkdoc-fixxref --module-dir=html --html-dir=$(HTML_DIR) $(FIXXREF_OPTIONS) |
---|
158 | touch html-build.stamp |
---|
159 | endif |
---|
160 | |
---|
161 | ############## |
---|
162 | |
---|
163 | clean-local: |
---|
164 | rm -f *~ *.bak $(SCANOBJ_FILES) *-unused.txt $(DOC_STAMPS) |
---|
165 | |
---|
166 | maintainer-clean-local: clean |
---|
167 | cd $(srcdir) && rm -rf sgml html $(DOC_MODULE)-decl-list.txt $(DOC_MODULE)-decl.txt |
---|
168 | |
---|
169 | install-data-local: |
---|
170 | $(mkinstalldirs) $(DESTDIR)$(TARGET_DIR) |
---|
171 | (installfiles=`echo $(srcdir)/html/*`; \ |
---|
172 | if test "$$installfiles" = '$(srcdir)/html/*'; \ |
---|
173 | then echo '-- Nothing to install' ; \ |
---|
174 | else \ |
---|
175 | for i in $$installfiles; do \ |
---|
176 | echo '-- Installing '$$i ; \ |
---|
177 | $(INSTALL_DATA) $$i $(DESTDIR)$(TARGET_DIR); \ |
---|
178 | done; \ |
---|
179 | echo '-- Installing $(srcdir)/html/index.sgml' ; \ |
---|
180 | $(INSTALL_DATA) $(srcdir)/html/index.sgml $(DESTDIR)$(TARGET_DIR); \ |
---|
181 | fi) |
---|
182 | |
---|
183 | # |
---|
184 | # Require gtk-doc when making dist |
---|
185 | # |
---|
186 | if ENABLE_GTK_DOC |
---|
187 | dist-check-gtkdoc: |
---|
188 | else |
---|
189 | dist-check-gtkdoc: |
---|
190 | @echo "*** gtk-doc must be installed and enabled in order to make dist" |
---|
191 | @false |
---|
192 | endif |
---|
193 | |
---|
194 | dist-hook: dist-check-gtkdoc dist-hook-local |
---|
195 | mkdir $(distdir)/tmpl |
---|
196 | mkdir $(distdir)/sgml |
---|
197 | mkdir $(distdir)/html |
---|
198 | -cp $(srcdir)/tmpl/*.sgml $(distdir)/tmpl |
---|
199 | -cp $(srcdir)/sgml/*.sgml $(distdir)/sgml |
---|
200 | -cp $(srcdir)/html/* $(distdir)/html |
---|
201 | |
---|
202 | .PHONY : dist-hook-local |
---|