Introspection non-fixes.
[gnumeric.git] / Makefile.am
blobd990accc9defbd05861261ee931b8b30f6388151
1 SUBDIRS = . po po-functions src plugins icons @COMPONENT_DIR@ templates doc tools schemas test introspection
3 XML_I18N_XML_KIND = --pass-through
5 # We used to distribute old ChangeLog files too.
6 change_logs = ChangeLog
8 CLEANFILES = gnumeric.desktop gnumeric.keys gnumeric.appdata.xml
9 DISTCLEANFILES = intltool-extract intltool-merge intltool-update $(pkgconfig_DATA)
11 # Flags for distcheck, mostly to install things that nominally go under the
12 # directories of other packages into the dist dir instead.  (They won't work
13 # there, but that's ok.)
14 DISTCHECK_CONFIGURE_FLAGS = --without-perl --without-python \
15         --enable-introspection=auto \
16         --with-gir-dir=\$${datadir}/gir-1.0 \
17         --with-typelib-dir=\$${libdir}/girepository-1.0 \
18         --with-gi-overrides-dir=\$${libdir}/gi/overrides \
19         --with-goffice-plugins-dir=\$${libdir}/goffice
21 DIST_SAMPLES = $(shell (cd $(srcdir)/test && perl -e 'use GnumericTest; foreach (&GnumericTest::corpus("dist")) { print "$$_\n"; }'))
23 EXTRA_DIST = \
24         README HACKING NEWS BEVERAGES BUGS MAINTAINERS AUTHORS $(change_logs)   \
25         COPYING COPYING-gpl2 COPYING-gpl3 \
26         gnumeric.appdata.xml.in \
27         gnumeric.desktop.in     \
28         gnumeric.keys.in        \
29         gnumeric.mime           \
30         gnumeric.spec           \
31         gnumeric.xsd            \
32         intltool-extract.in     \
33         intltool-merge.in       \
34         intltool-update.in      \
35         xmldocs.make            \
36         libspreadsheet.pc.in    \
37         omf.make                \
38         $(DIST_SAMPLES)
40 pkgconfigdir = $(libdir)/pkgconfig
41 pkgconfig_DATA = libspreadsheet-@GNUMERIC_API_VER@.pc
43 libspreadsheet-@GNUMERIC_API_VER@.pc: libspreadsheet.pc
44         cp $< $@
46 @INTLTOOL_DESKTOP_RULE@
47 @INTLTOOL_XML_RULE@
49 appdatadir = $(datadir)/appdata
50 appdata_in_files = gnumeric.appdata.xml.in
51 appdata_DATA = gnumeric.appdata.xml
53 gnumeric.appdata.xml: gnumeric.appdata.xml.in Makefile $(INTLTOOL_MERGE) $(POFILES_FULL)
54         LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@
56 Applicationsdir = $(datadir)/applications/
57 Applications_in_files = gnumeric.desktop.in
58 Applications_DATA = gnumeric.desktop
60 gnumeric.desktop: gnumeric.desktop.in Makefile $(INTLTOOL_MERGE) $(POFILES_FULL)
61         LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@.tmp
62         sed -e 's/F_OR_U/U/' <$@.tmp >$@.tmp2
63         sed -e 's/BUGZILLAVERSION/@VERSION@/' <$@.tmp2 >$@
64         rm -f $@.tmp $@.tmp2
66 configexecincludedir = $(includedir)/libspreadsheet-@GNUMERIC_API_VER@/spreadsheet
67 install-exec-local: gnumeric-features.h
68         $(mkinstalldirs) $(DESTDIR)$(configexecincludedir)
69         file=$(DESTDIR)$(configexecincludedir)/$< ; \
70         if test -r $$file && cmp -s $< $$file; then :; \
71         else $(INSTALL_DATA) $< $$file; fi
73 uninstall-local:
74         rm -f $(DESTDIR)$(configexecincludedir)/gnumeric-features.h
76 ## If I understand this correctly, this hack is needed only --with-perl:
77 if WITH_PERL
78 # disable the check because the old perl plugin is hard to clean
79 distuninstallcheck:
80         @:
81 endif