Compilation: don't compile tools separately.
[gnumeric.git] / Makefile.am
blob282181af5262bc8f8db9e6b1d19e9fee1e7e7db8
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         libspreadsheet.pc.in    \
36         omf.make                \
37         $(DIST_SAMPLES)
39 pkgconfigdir = $(libdir)/pkgconfig
40 pkgconfig_DATA = libspreadsheet-@GNUMERIC_API_VER@.pc
42 libspreadsheet-@GNUMERIC_API_VER@.pc: libspreadsheet.pc
43         cp $< $@
45 @INTLTOOL_DESKTOP_RULE@
46 @INTLTOOL_XML_RULE@
48 appdatadir = $(datadir)/appdata
49 appdata_in_files = gnumeric.appdata.xml.in
50 appdata_DATA = gnumeric.appdata.xml
52 gnumeric.appdata.xml: gnumeric.appdata.xml.in Makefile $(INTLTOOL_MERGE) $(POFILES_FULL)
53         LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@
55 Applicationsdir = $(datadir)/applications/
56 Applications_in_files = gnumeric.desktop.in
57 Applications_DATA = gnumeric.desktop
59 gnumeric.desktop: gnumeric.desktop.in Makefile $(INTLTOOL_MERGE) $(POFILES_FULL)
60         LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@.tmp
61         sed -e 's/F_OR_U/U/' <$@.tmp >$@.tmp2
62         sed -e 's/BUGZILLAVERSION/@VERSION@/' <$@.tmp2 >$@
63         rm -f $@.tmp $@.tmp2
65 configexecincludedir = $(includedir)/libspreadsheet-@GNUMERIC_API_VER@/spreadsheet
66 install-exec-local: gnumeric-features.h
67         $(mkinstalldirs) $(DESTDIR)$(configexecincludedir)
68         file=$(DESTDIR)$(configexecincludedir)/$< ; \
69         if test -r $$file && cmp -s $< $$file; then :; \
70         else $(INSTALL_DATA) $< $$file; fi
72 uninstall-local:
73         rm -f $(DESTDIR)$(configexecincludedir)/gnumeric-features.h
75 ## If I understand this correctly, this hack is needed only --with-perl:
76 if WITH_PERL
77 # disable the check because the old perl plugin is hard to clean
78 distuninstallcheck:
79         @:
80 endif