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 -I. -e 'use GnumericTest; foreach (&GnumericTest::corpus("dist")) { print "$$_\n"; }'))
24 README HACKING NEWS BEVERAGES BUGS MAINTAINERS AUTHORS $(change_logs) \
25 COPYING COPYING-gpl2 COPYING-gpl3 \
26 gnumeric.appdata.xml.in \
35 libspreadsheet.pc.in \
38 pkgconfigdir = $(libdir)/pkgconfig
39 pkgconfig_DATA = libspreadsheet-@GNUMERIC_API_VER@.pc
41 libspreadsheet-@GNUMERIC_API_VER@.pc: libspreadsheet.pc
44 @INTLTOOL_DESKTOP_RULE@
47 appdatadir = $(datadir)/appdata
48 appdata_in_files = gnumeric.appdata.xml.in
49 appdata_DATA = gnumeric.appdata.xml
51 gnumeric.appdata.xml: gnumeric.appdata.xml.in Makefile $(INTLTOOL_MERGE) $(POFILES_FULL)
52 LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@
54 Applicationsdir = $(datadir)/applications/
55 Applications_in_files = gnumeric.desktop.in
56 Applications_DATA = gnumeric.desktop
58 gnumeric.desktop: gnumeric.desktop.in Makefile $(INTLTOOL_MERGE) $(POFILES_FULL)
59 LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@.tmp
60 sed -e 's/F_OR_U/U/' <$@.tmp >$@.tmp2
61 sed -e 's/BUGZILLAVERSION/@VERSION@/' <$@.tmp2 >$@
64 configexecincludedir = $(includedir)/libspreadsheet-@GNUMERIC_API_VER@/spreadsheet
65 install-exec-local: gnumeric-features.h
66 $(mkinstalldirs) $(DESTDIR)$(configexecincludedir)
67 file=$(DESTDIR)$(configexecincludedir)/$< ; \
68 if test -r $$file && cmp -s $< $$file; then :; \
69 else $(INSTALL_DATA) $< $$file; fi
72 rm -f $(DESTDIR)$(configexecincludedir)/gnumeric-features.h
74 ## If I understand this correctly, this hack is needed only --with-perl:
76 # disable the check because the old perl plugin is hard to clean