Distcheck fixes.
[gnumeric.git] / Makefile.am
blob6c88f0ce493c3f039f01e46fe05e3999cf7e2860
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 DISTCHECK_CONFIGURE_FLAGS = --without-perl --without-python \
12         --enable-introspection=auto \
13         --with-gir-dir=\$${datadir}/gir-1.0 \
14         --with-typelib-dir=\$${libdir}/girepository-1.0 \
15         --with-gi-overrides-dir=\$${libdir}/gi/overrides
17 DIST_SAMPLES = $(shell (cd $(srcdir)/test && perl -e 'use GnumericTest; foreach (&GnumericTest::corpus("dist")) { print "$$_\n"; }'))
19 EXTRA_DIST = \
20         README HACKING NEWS BEVERAGES BUGS MAINTAINERS AUTHORS $(change_logs)   \
21         COPYING COPYING-gpl2 COPYING-gpl3 \
22         gnumeric.appdata.xml.in \
23         gnumeric.desktop.in     \
24         gnumeric.keys.in        \
25         gnumeric.mime           \
26         gnumeric.spec           \
27         gnumeric.xsd            \
28         intltool-extract.in     \
29         intltool-merge.in       \
30         intltool-update.in      \
31         xmldocs.make            \
32         libspreadsheet.pc.in    \
33         omf.make                \
34         $(DIST_SAMPLES)
36 pkgconfigdir = $(libdir)/pkgconfig
37 pkgconfig_DATA = libspreadsheet-@GNUMERIC_API_VER@.pc
39 libspreadsheet-@GNUMERIC_API_VER@.pc: libspreadsheet.pc
40         cp $< $@
42 @INTLTOOL_DESKTOP_RULE@
43 @INTLTOOL_XML_RULE@
45 appdatadir = $(datadir)/appdata
46 appdata_in_files = gnumeric.appdata.xml.in
47 appdata_DATA = gnumeric.appdata.xml
49 gnumeric.appdata.xml: gnumeric.appdata.xml.in Makefile $(INTLTOOL_MERGE) $(POFILES_FULL)
50         LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@
52 Applicationsdir = $(datadir)/applications/
53 Applications_in_files = gnumeric.desktop.in
54 Applications_DATA = gnumeric.desktop
56 gnumeric.desktop: gnumeric.desktop.in Makefile $(INTLTOOL_MERGE) $(POFILES_FULL)
57         LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@.tmp
58         sed -e 's/F_OR_U/U/' <$@.tmp >$@.tmp2
59         sed -e 's/BUGZILLAVERSION/@VERSION@/' <$@.tmp2 >$@
60         rm -f $@.tmp $@.tmp2
62 configexecincludedir = $(includedir)/libspreadsheet-@GNUMERIC_API_VER@/spreadsheet
63 install-exec-local: gnumeric-features.h
64         $(mkinstalldirs) $(DESTDIR)$(configexecincludedir)
65         file=$(DESTDIR)$(configexecincludedir)/$< ; \
66         if test -r $$file && cmp -s $< $$file; then :; \
67         else $(INSTALL_DATA) $< $$file; fi
69 uninstall-local:
70         rm -f $(DESTDIR)$(configexecincludedir)/gnumeric-features.h
72 ## If I understand this correctly, this hack is needed only --with-perl:
73 if WITH_PERL
74 # disable the check because the old perl plugin is hard to clean
75 distuninstallcheck:
76         @:
77 endif