GUI: Move .ui files from goffice resources to glib resources
[gnumeric.git] / src / Makefile.am
blob80a4948afad8ac3269db98e8062982e6858db1ec
2 # Gnumeric's Makefile.am
3 # Author: Miguel de Icaza (miguel@kernel.org)
4 -include $(INTROSPECTION_MAKEFILE)
5 INTROSPECTION_GIRS =
6 INTROSPECTION_SCANNER_ARGS = \
7         --add-include-path="${INTROSPECTION_GIRDIR}" \
8         -v --warn-all --accept-unprefixed \
9         --identifier-prefix="Gnm"  --identifier-prefix="Gnumeric" \
10         -I$(top_builddir) \
11         -DGOFFICE_NAMESPACE_DISABLE
12 INTROSPECTION_COMPILER_ARGS = \
13         --includedir=$(srcdir) \
14         --includedir=. \
15         --includedir="${INTROSPECTION_GIRDIR}"
17 SUBDIRS = tools cut-n-paste-code
19 lib_LTLIBRARIES = libspreadsheet.la
21 bin_PROGRAMS =
22 check_PROGRAMS =
23 noinst_PROGRAMS = sstest
25 noinst_HEADERS = dead-kittens.h compilation.h gnm-i18n.h
27 if WITH_GTK
28   SUBDIRS += dialogs widgets
29   bin_PROGRAMS += gnumeric
30 endif
32 bin_PROGRAMS += ssconvert ssindex ssgrep ssdiff
34 AM_CPPFLAGS =                                                           \
35         -I$(top_srcdir)                                                 \
36         -I$(srcdir)                                                     \
37         -I$(srcdir)/widgets                                             \
38         -I$(srcdir)/dialogs                                             \
39         -I$(srcdir)/tools                                               \
40         $(GNUMERIC_CFLAGS)
42 # A hint is needed to build these headers first:
43 BUILT_SOURCES =                                 \
44         gnm-marshalers.c                        \
45         gnm-marshalers.h                        \
46         gnmresources.c                          \
47         gnmresources.h                          \
48         gnumeric-paths.h
50 # These also need to occur in gnm.gresource.xml
51 resource_ui_files =                             \
52         advanced-filter.ui                      \
53         anova-one.ui                            \
54         anova-two.ui                            \
55         autofilter-expression.ui                \
56         autofilter-top10.ui                     \
57         autoformat.ui                           \
58         autosave.ui                             \
59         cell-comment.ui                         \
60         cell-format-cond.ui                     \
61         cell-format.ui                          \
62         cell-sort.ui                            \
63         chi-squared.ui                          \
64         col-width.ui                            \
65         colrow.ui                               \
66         consolidate.ui                          \
67         correlation.ui                          \
68         covariance.ui                           \
69         dao.ui                                  \
70         data-slicer.ui                          \
71         data-table.ui                           \
72         define-name.ui                          \
73         delete-cells.ui                         \
74         descriptive-stats.ui                    \
75         dialog-stf-export.ui                    \
76         dialog-stf.ui                           \
77         dialog-zoom.ui                          \
78         doc-meta-data.ui                        \
79         exp-smoothing.ui                        \
80         fill-series.ui                          \
81         formula-guru.ui                         \
82         fourier-analysis.ui                     \
83         frequency.ui                            \
84         function-select.ui                      \
85         goalseek.ui                             \
86         goto.ui                                 \
87         hf-config.ui                            \
88         hf-dt-format.ui                         \
89         histogram.ui                            \
90         hyperlink.ui                            \
91         insert-cells.ui                         \
92         kaplan-meier.ui                         \
93         mean-tests.ui                           \
94         merge.ui                                \
95         moving-averages.ui                      \
96         normality-tests.ui                      \
97         one-mean-test.ui                        \
98         paste-special.ui                        \
99         plugin-manager.ui                       \
100         preferences.ui                          \
101         principal-components.ui                 \
102         print.ui                                \
103         quit.ui                                 \
104         random-generation-cor.ui                \
105         random-generation.ui                    \
106         rank.ui                                 \
107         recent.ui                               \
108         regression.ui                           \
109         row-height.ui                           \
110         sampling.ui                             \
111         scenario-add.ui                         \
112         scenario-manager.ui                     \
113         search-replace.ui                       \
114         search.ui                               \
115         sheet-compare.ui                        \
116         sheet-order.ui                          \
117         sheet-rename.ui                         \
118         sheet-resize.ui                         \
119         sheetobject-size.ui                     \
120         shuffle.ui                              \
121         sign-test-two.ui                        \
122         sign-test.ui                            \
123         simulation.ui                           \
124         so-button.ui                            \
125         so-checkbox.ui                          \
126         so-frame.ui                             \
127         so-list.ui                              \
128         so-radiobutton.ui                       \
129         so-scrollbar.ui                         \
130         solver.ui                               \
131         tabulate.ui                             \
132         variance-tests.ui                       \
133         view.ui                                 \
134         wbcg.ui                                 \
135         wilcoxon-mann-whitney.ui                \
136         workbook-attr.ui
139 # Another hint, see bugs #172211 and #172212:
140 non-intermediate: gnm-marshalers.c gnmresources.c
142 resource_files = $(shell $(GLIB_COMPILE_RESOURCES) --sourcedir=$(top_srcdir) --generate-dependencies $(srcdir)/gnm.gresource.xml)
144 gnmresources.h: gnm.gresource.xml
145         $(AM_V_GEN) $(GLIB_COMPILE_RESOURCES) $< \
146                 --target=$@ --sourcedir=$(top_srcdir) --c-name _gnm --generate-header --manual-register
147 gnmresources.c: gnm.gresource.xml $(resource_files) Makefile
148         $(AM_V_GEN) $(GLIB_COMPILE_RESOURCES) $< \
149                 --target=$@ --sourcedir=$(top_srcdir) --c-name _gnm --generate-source --manual-register
152 CLEANFILES = $(BUILT_SOURCES)                   \
153         gnumeric.exe.a
155 libspreadsheet_la_CPPFLAGS = $(AM_CPPFLAGS) -DGNUMERIC_INTERNAL
156 libspreadsheet_la_LDFLAGS = -release $(VERSION)
157 libspreadsheet_la_LIBADD =                      \
158         $(gnumeric_app_libs)                    \
159         $(GNUMERIC_LIBS)                        \
160         $(INTLLIBS)
162 libspreadsheet_la_SOURCES =                     \
163         go-val.h                        \
164         go-val.c                        \
165         \
166         goffice-data.h                  \
167         go-data-cache-source.c          \
168         go-data-cache-source.h          \
169         go-data-cache-impl.h            \
170         go-data-cache.h                 \
171         go-data-cache.c                 \
172         go-data-cache-field-impl.h      \
173         go-data-cache-field.h           \
174         go-data-cache-field.c           \
175         go-data-slicer-impl.h           \
176         go-data-slicer.h                \
177         go-data-slicer.c                \
178         go-data-slicer-field-impl.h     \
179         go-data-slicer-field.h          \
180         go-data-slicer-field.c          \
181         \
182         gnm-data-cache-source.h         \
183         gnm-data-cache-source.c         \
184         gnm-sheet-slicer.h              \
185         gnm-sheet-slicer.c              \
186         gnm-sheet-slicer-combo.h        \
187         gnm-sheet-slicer-combo.c        \
188         \
189         gnm-cell-combo.h                \
190         gnm-cell-combo.c                \
191         \
192         gnm-marshalers.c                        \
193         application.c                           \
194         auto-format.c                           \
195         cell-draw.c                             \
196         cell.c                                  \
197         cellspan.c                              \
198         clipboard.c                             \
199         cmd-edit.c                              \
200         collect.c                               \
201         colrow.c                                \
202         command-context-stderr.c                \
203         command-context.c                       \
204         commands.c                              \
205         complete-sheet.c                        \
206         complete.c                              \
207         complex.c                               \
208         consolidate.c                           \
209         criteria.c                              \
210         dependent.c                             \
211         expr-deriv.c                            \
212         expr-name.c                             \
213         expr.c                                  \
214         file-autoft.c                           \
215         format-template.c                       \
216         func-builtin.c                          \
217         func.c                                  \
218         gnm-commands-slicer.c                   \
219         gnm-datetime.c                          \
220         gnm-format.c                            \
221         gnm-graph-window.c                      \
222         gnm-pane-impl.h                         \
223         gnm-pane.c                              \
224         gnm-plugin.c                            \
225         gnm-random.c                            \
226         gnm-so-filled.c                         \
227         gnm-so-line.c                           \
228         gnm-so-path.c                           \
229         gnm-so-polygon.c                        \
230         gnumeric-conf.c                         \
231         gnumeric-simple-canvas.c                \
232         graph.c                                 \
233         gui-clipboard.c                         \
234         gui-file.c                              \
235         gui-util.c                              \
236         gutils.c                                \
237         history.c                               \
238         hlink.c                                 \
239         input-msg.c                             \
240         item-bar.c                              \
241         item-cursor.c                           \
242         item-edit.c                             \
243         item-grid.c                             \
244         libgnumeric.c                           \
245         mathfunc.c                              \
246         mstyle.c                                \
247         number-match.c                          \
248         outoflinedocs.c                         \
249         parse-util.c                            \
250         parser.y                                \
251         pattern.c                               \
252         position.c                              \
253         preview-grid-impl.h                     \
254         preview-grid.c                          \
255         print-cell.c                            \
256         print-info.c                            \
257         print.c                                 \
258         rangefunc-strings.c                     \
259         rangefunc.c                             \
260         ranges.c                                \
261         rendered-value.c                        \
262         search.c                                \
263         selection.c                             \
264         session.c                               \
265         sf-bessel.c                             \
266         sf-dpq.c                                \
267         sf-gamma.c                              \
268         sf-trig.c                               \
269         sheet-autofill.c                        \
270         sheet-control-gui.c                     \
271         sheet-control.c                         \
272         sheet-diff.c                            \
273         sheet-filter.c                          \
274         sheet-merge.c                           \
275         sheet-object-cell-comment.c             \
276         sheet-object-component.c                \
277         sheet-object-graph.c                    \
278         sheet-object-image.c                    \
279         sheet-object-widget.c                   \
280         sheet-object.c                          \
281         sheet-style.c                           \
282         sheet-utils.c                           \
283         sheet-view.c                            \
284         sheet.c                                 \
285         sort.c                                  \
286         stf-export.c                            \
287         stf-parse.c                             \
288         stf.c                                   \
289         style-border.c                          \
290         style-color.c                           \
291         style-conditions.c                      \
292         style.c                                 \
293         undo.c                                  \
294         validation.c                            \
295         value-sheet.c                           \
296         value.c                                 \
297         wbc-gtk-actions.c                       \
298         wbc-gtk-edit.c                          \
299         wbc-gtk.c                               \
300         workbook-cmd-format.c                   \
301         workbook-control.c                      \
302         workbook-view.c                         \
303         workbook.c                              \
304         xml-sax-read.c                          \
305         xml-sax-write.c
307 nodist_libspreadsheet_la_SOURCES = gnmresources.c gnmresources.h
309 # When we switch to subversion fix this to nest as
310 # libspreadsheet-ver/spreadsheet/header
311 # doing it now would require massive cvs surgery.
312 libspreadsheet_includedir = $(includedir)/libspreadsheet-@GNUMERIC_API_VER@/spreadsheet
313 libspreadsheet_include_HEADERS =        \
314         application.h                           \
315         auto-format.h                           \
316         cell-draw.h                             \
317         cell.h                                  \
318         cellspan.h                              \
319         clipboard.h                             \
320         cmd-edit.h                              \
321         collect.h                               \
322         colrow.h                                \
323         command-context-stderr.h                \
324         command-context.h                       \
325         commands.h                              \
326         complete-sheet.h                        \
327         complete.h                              \
328         complex.h                               \
329         consolidate.h                           \
330         criteria.h                              \
331         dependent.h                             \
332         expr-deriv.h                            \
333         expr-impl.h                             \
334         expr-name.h                             \
335         expr.h                                  \
336         file-autoft.h                           \
337         format-template.h                       \
338         func-builtin.h                          \
339         func.h                                  \
340         gnm-command-impl.h                      \
341         gnm-commands-slicer.h                   \
342         gnm-data-cache-source.h                 \
343         gnm-datetime.h                          \
344         gnm-format.h                            \
345         gnm-graph-window.h                      \
346         gnm-pane.h                              \
347         gnm-plugin.h                            \
348         gnm-random.h                            \
349         gnm-sheet-slicer.h                      \
350         gnm-so-filled.h                         \
351         gnm-so-line.h                           \
352         gnm-so-path.h                           \
353         gnm-so-polygon.h                        \
354         gnumeric-conf.h                         \
355         gnumeric-fwd.h                          \
356         gnumeric-simple-canvas.h                \
357         gnumeric.h                              \
358         go-data-cache-field.h                   \
359         go-data-cache-source.h                  \
360         go-data-cache.h                         \
361         go-data-slicer-field.h                  \
362         go-data-slicer.h                        \
363         go-val.h                                \
364         graph.h                                 \
365         gui-clipboard.h                         \
366         gui-file.h                              \
367         gui-util.h                              \
368         gutils.h                                \
369         history.h                               \
370         hlink-impl.h                            \
371         hlink.h                                 \
372         input-msg.h                             \
373         item-bar.h                              \
374         item-cursor.h                           \
375         item-edit.h                             \
376         item-grid.h                             \
377         libgnumeric.h                           \
378         mathfunc.h                              \
379         mstyle.h                                \
380         number-match.h                          \
381         numbers.h                               \
382         parse-util.h                            \
383         pattern.h                               \
384         position.h                              \
385         preview-grid.h                          \
386         print-cell.h                            \
387         print-info.h                            \
388         print.h                                 \
389         rangefunc-strings.h                     \
390         rangefunc.h                             \
391         ranges.h                                \
392         regression.h                            \
393         rendered-value.h                        \
394         search.h                                \
395         selection.h                             \
396         session.h                               \
397         sf-bessel.h                             \
398         sf-dpq.h                                \
399         sf-gamma.h                              \
400         sf-trig.h                               \
401         sheet-autofill.h                        \
402         sheet-control-gui-priv.h                \
403         sheet-control-gui.h                     \
404         sheet-control-priv.h                    \
405         sheet-control.h                         \
406         sheet-diff.h                            \
407         sheet-filter-combo.h                    \
408         sheet-filter.h                          \
409         sheet-merge.h                           \
410         sheet-object-cell-comment.h             \
411         sheet-object-component.h                \
412         sheet-object-graph.h                    \
413         sheet-object-image.h                    \
414         sheet-object-impl.h                     \
415         sheet-object-widget-impl.h              \
416         sheet-object-widget.h                   \
417         sheet-object.h                          \
418         sheet-private.h                         \
419         sheet-style.h                           \
420         sheet-utils.h                           \
421         sheet-view.h                            \
422         sheet.h                                 \
423         sort.h                                  \
424         stf-export.h                            \
425         stf-parse.h                             \
426         stf.h                                   \
427         style-border.h                          \
428         style-color.h                           \
429         style-conditions.h                      \
430         style-font.h                            \
431         style.h                                 \
432         undo.h                                  \
433         validation-combo.h                      \
434         validation.h                            \
435         value.h                                 \
436         wbc-gtk-impl.h                          \
437         wbc-gtk.h                               \
438         workbook-cmd-format.h                   \
439         workbook-control-priv.h                 \
440         workbook-control.h                      \
441         workbook-priv.h                         \
442         workbook-view.h                         \
443         workbook.h                              \
444         xml-io-version.h                        \
445         xml-sax.h
447 gnumeric_SOURCES =                              \
448         io-context-gtk.c                        \
449         io-context-gtk.h                        \
450         main-application.c
452 gnumeric_LDADD =                                \
453         libspreadsheet.la                       \
454         $(GNUMERIC_LIBS)                        \
455         $(INTLLIBS)
456 gnumeric_LDFLAGS = -export-dynamic
458 ssconvert_LDADD   = $(gnumeric_LDADD)
459 ssconvert_LDFLAGS = -export-dynamic
460 ssconvert_SOURCES =                             \
461         ssconvert.c
462 ssindex_LDADD   = $(gnumeric_LDADD)
463 ssindex_LDFLAGS = -export-dynamic
464 ssindex_SOURCES =                               \
465         ssindex.c
466 ssgrep_LDADD   = $(gnumeric_LDADD)
467 ssgrep_LDFLAGS = -export-dynamic
468 ssgrep_SOURCES =                                \
469         ssgrep.c
470 sstest_LDADD   = $(gnumeric_LDADD)
471 sstest_LDFLAGS = -export-dynamic
472 sstest_SOURCES =                                \
473         sstest.c
474 ssdiff_LDADD   = $(gnumeric_LDADD)
475 ssdiff_LDFLAGS = -export-dynamic
476 ssdiff_SOURCES =                                \
477         ssdiff.c
479 if WITH_NATIVE_WIN32
480     gnumeric_LDADD += gnumeric_rc.o
481     gnumeric_LDFLAGS    += -mwindows -Wl,--stack,0x4000000
482     ssconvert_LDFLAGS   += -mconsole -Wl,--stack,0x4000000
483     ssindex_LDFLAGS     += -mconsole
484     ssgrep_LDFLAGS      += -mconsole
486     libspreadsheet_la_DEPENDENCIES = libspreadsheet.def
487     libspreadsheet_la_LDFLAGS += -no-undefined -export-symbols libspreadsheet.def
488 endif
490 if WITH_WIN32
491 libspreadsheet.def: local.def
492         echo EXPORTS > $@ && \
493         cat $^ | sort >> $@
495 local.def: stamp-local.def
496         @true
498 stamp-local.def: $(libspreadsheet_include_HEADERS) Makefile $(top_srcdir)/tools/dumpdef.pl
499         hdrs='$(libspreadsheet_include_HEADERS) dialogs/dialogs.h dialogs/tool-dialogs.h tools/dao.h tools/goal-seek.h tools/analysis-tools.h tools/gnm-solver.h widgets/gnumeric-expr-entry.h'; \
500         hdrs_list=''; \
501         for hdr in $$hdrs; do \
502           if test -f $(srcdir)/$$hdr; then \
503             hdrs_list="$$hdrs_list $(srcdir)/$$hdr"; \
504           else \
505             hdrs_list="$$hdrs_list $$hdr"; \
506           fi; \
507         done; \
508         cat $(top_builddir)/gnumeric-config.h $$hdrs_list | \
509                 sed -e 's/^#[ \t]*include[ \t]\+.*$$//g' | \
510                 $(CPP) $(AM_CPPFLAGS) "-DGNM_VAR_DECL=__declspec(dllexport)" -P - > xgen-localdef.1 && \
511         perl $(top_srcdir)/tools/dumpdef.pl \
512                 xgen-localdef.1 > xgen-localdef.2 \
513         && (cmp -s xgen-localdef.2 local.def || \
514                 cp xgen-localdef.2 local.def) \
515         && rm -f xgen-localdef.1 xgen-localdef.2 \
516         && echo timestamp > $@
518 endif
520 gnumeric_app_libs =                             \
521         dialogs/libdialogs.la                   \
522         tools/libtools.la                       \
523         widgets/libwidgets.la
526 # Rules for the marshalers code:
527 GENMARSHAL_COMMAND = $(GLIB_GENMARSHAL) --prefix=gnm_
529 .list.h:
530         $(GENMARSHAL_COMMAND) --header $< >$@
532 .list.c:
533         (echo '/* This file has been automatically generated.  Do not edit. */' && \
534         echo '#include "$*.h"' && \
535         $(GENMARSHAL_COMMAND) --body $< ) >$@
537 # Depends on this Makefile, because it uses make variables.
538 gnumeric-paths.h: Makefile
539         @echo 'creating $@'
540         @( \
541         echo '/* This file has been automatically generated.  Do not edit. */'; \
542         echo ''; \
543         echo '#ifndef GNUMERIC_PATHS_H'; \
544         echo '#define GNUMERIC_PATHS_H'; \
545         echo ''; \
546         echo '#define GNUMERIC_PREFIX           "$(prefix)"'; \
547         echo '#define GNUMERIC_SYSCONFDIR       "$(sysconfdir)"'; \
548         echo '#define GNUMERIC_DATADIR          "$(gnumeric_datadir)"'; \
549         echo '#define GNUMERIC_LIBDIR           "$(gnumeric_libdir)"'; \
550         echo '#define GNUMERIC_ICONDIR          "$(gnumeric_icondir)"'; \
551         echo '#define GNUMERIC_LOCALEDIR        "$(gnumeric_localedir)"'; \
552         echo '#define GNUMERIC_EXTERNPLUGINDIR          "$(gnumeric_externplugindir)"'; \
553         echo ''; \
554         echo '#endif /* GNUMERIC_PATHS_H */'; \
555         ) >$@
557 update-gnumeric-conf:
558         make -C ${top_srcdir}/schemas
559         rm -f gnumeric-conf.c.tmp
560         @PERL@ -pe 'if (/AUTOMATICALLY GENERATED CODE BELOW/) { print; print "\n"; last; }' <gnumeric-conf.c >gnumeric-conf.c.tmp
561         @PERL@ ${top_srcdir}/tools/handle-conf-options --cfile ${top_srcdir}/schemas/org.gnome.gnumeric*.gschema.xml.in >>gnumeric-conf.c.tmp
562         if cmp gnumeric-conf.c gnumeric-conf.c.tmp; then \
563           rm gnumeric-conf.c.tmp; \
564         else \
565           mv gnumeric-conf.c.tmp gnumeric-conf.c; \
566         fi
567         rm -f gnumeric-conf.h.tmp
568         @PERL@ -pe 'if (/AUTOMATICALLY GENERATED CODE BELOW/) { print; print "\n"; last; }' <gnumeric-conf.h >gnumeric-conf.h.tmp
569         @PERL@ ${top_srcdir}/tools/handle-conf-options --hfile ${top_srcdir}/schemas/org.gnome.gnumeric*.gschema.xml.in >>gnumeric-conf.h.tmp
570         echo '' >>gnumeric-conf.h.tmp
571         @PERL@ -ne '$$p=1 if (/AUTOMATICALLY GENERATED CODE ABOVE/); print if $$p;' <gnumeric-conf.h >>gnumeric-conf.h.tmp
572         if cmp gnumeric-conf.h gnumeric-conf.h.tmp; then \
573           rm gnumeric-conf.h.tmp; \
574         else \
575           mv gnumeric-conf.h.tmp gnumeric-conf.h; \
576         fi
578 if WITH_NATIVE_WIN32
579 gnumeric_rc.o: gnumeric.rc ../gnumeric-config.h
580         $(WINDRES) -DVERSION=$(VERSION) -DVERSION_NUMBER=`echo $(VERSION).0.0.0 | sed 's/\([0-9]*\)[^.]*\.*\([0-9]*\)[^.]*\.*\([0-9]*\)[^.]*\.*\([0-9]*\).*/\1,\2,\3,\4/'` --include-dir $(srcdir) -i $< -o $@
581 install-exec-hook:
582 else
583 install-exec-hook:
584         cd $(DESTDIR)$(bindir) && \
585         mv -f gnumeric$(EXEEXT) gnumeric-$(VERSION)$(EXEEXT) && \
586         $(LN_S) gnumeric-$(VERSION)$(EXEEXT) gnumeric$(EXEEXT)
587 endif
589 uninstall-hook:
590         -cd $(DESTDIR)$(bindir) && \
591         rm -f gnumeric-$(VERSION)$(EXEEXT)
593 # include conditional files to ensure everything gets distributed no matter
594 # what the build
595 EXTRA_DIST =                                            \
596         gnm.gresource.xml                               \
597         pixmaps/line_pattern_dash_dot.png               \
598         pixmaps/line_pattern_dash_dot_dot.png           \
599         pixmaps/line_pattern_dashed.png                 \
600         pixmaps/line_pattern_dotted.png                 \
601         pixmaps/line_pattern_double.png                 \
602         pixmaps/line_pattern_hair.png                   \
603         pixmaps/line_pattern_medium.png                 \
604         pixmaps/line_pattern_medium_dash.png            \
605         pixmaps/line_pattern_medium_dash_dot.png        \
606         pixmaps/line_pattern_medium_dash_dot_dot.png    \
607         pixmaps/line_pattern_slant.png                  \
608         pixmaps/line_pattern_thick.png                  \
609         pixmaps/line_pattern_thin.png                   \
610         pixmaps/right-down.png                          \
611         pixmaps/down-right.png                          \
612         pixmaps/gnumeric_splash_1.4.png                 \
613         pixmaps/unknown_image.png                       \
614         pixmaps/sheet_move_marker.png                   \
615         gnumeric.css                                    \
616         gnm-marshalers.list                             \
617         README.gnm_float                                \
618         gnumeric.rc                                     \
619         GNOME_Gnumeric-gtk.xml                          \
620         $(resource_ui_files)
622 if HAVE_INTROSPECTION
624 INTROSPECTION_GIRS += Gnm-@GNUMERIC_API_VER@.gir
626 Gnm-@GNUMERIC_API_VER@.gir: $(INTROSPECTION_SCANNER) libspreadsheet.la Makefile
627 Gnm_@GNUMERIC_API_VER_@_gir_INCLUDES = GObject-2.0 Gio-2.0 libxml2-2.0 \
628                                                                            Gsf-1 GOffice-@GOFFICE_API_VER@
629 Gnm_@GNUMERIC_API_VER_@_gir_CFLAGS = $(AM_CPPFLAGS)
630 Gnm_@GNUMERIC_API_VER_@_gir_LIBS = libspreadsheet.la
631 Gnm_@GNUMERIC_API_VER_@_gir_FILES = \
632         $(libspreadsheet_la_SOURCES) \
633         $(libspreadsheet_include_HEADERS) \
634         tools/dao.c \
635         tools/dao.h \
636         tools/scenarios.c \
637         tools/scenarios.h \
638         tools/gnm-solver.c \
639         tools/gnm-solver.h \
640         tools/tools.h \
641         widgets/gnumeric-expr-entry.c \
642         widgets/gnumeric-expr-entry.h
645 girdir = $(GIRDIR)
646 gir_DATA = $(INTROSPECTION_GIRS)
648 typelibsdir = $(TYPELIBDIR)
649 typelibs_DATA = $(INTROSPECTION_GIRS:.gir=.typelib)
651 CLEANFILES += $(gir_DATA) $(typelibs_DATA)
653 endif # HAVE_INTROSPECTION