Makefile.am 2.76 KB
Newer Older
1
SUBDIRS = . po po-functions src plugins icons @COMPONENT_DIR@ templates doc tools schemas test introspection
Jody Goldberg's avatar
Jody Goldberg committed
2

3 4
XML_I18N_XML_KIND = --pass-through

Morten Welinder's avatar
Morten Welinder committed
5 6
# We used to distribute old ChangeLog files too.
change_logs = ChangeLog
7

Morten Welinder's avatar
Morten Welinder committed
8
CLEANFILES = gnumeric.desktop gnumeric.keys gnumeric.appdata.xml
Adrian Bunk's avatar
Adrian Bunk committed
9
DISTCLEANFILES = intltool-extract intltool-merge intltool-update $(pkgconfig_DATA)
10

11 12 13
# Flags for distcheck, mostly to install things that nominally go under the
# directories of other packages into the dist dir instead.  (They won't work
# there, but that's ok.)
14 15 16
DISTCHECK_CONFIGURE_FLAGS = --without-perl --without-python \
	--enable-introspection=auto \
	--with-gir-dir=\$${datadir}/gir-1.0 \
Morten Welinder's avatar
Morten Welinder committed
17
	--with-typelib-dir=\$${libdir}/girepository-1.0 \
18 19
	--with-gi-overrides-dir=\$${libdir}/gi/overrides \
	--with-goffice-plugins-dir=\$${libdir}/goffice
Morten Welinder's avatar
Morten Welinder committed
20

21
DIST_SAMPLES = $(shell (cd $(srcdir)/test && perl -I. -e 'use GnumericTest; foreach (&GnumericTest::corpus("dist")) { print "$$_\n"; }'))
22

23
EXTRA_DIST = \
Jody Goldberg's avatar
Jody Goldberg committed
24
	README HACKING NEWS BEVERAGES BUGS MAINTAINERS AUTHORS $(change_logs)	\
Morten Welinder's avatar
Morten Welinder committed
25
	COPYING COPYING-gpl2 COPYING-gpl3 \
26
	gnumeric.appdata.xml.in	\
Stepan Kasal's avatar
Stepan Kasal committed
27 28 29 30 31
	gnumeric.desktop.in	\
	gnumeric.keys.in	\
	gnumeric.mime		\
	gnumeric.spec		\
	gnumeric.xsd		\
Jody Goldberg's avatar
Jody Goldberg committed
32 33 34
	intltool-extract.in	\
	intltool-merge.in	\
	intltool-update.in	\
35
	libspreadsheet.pc.in	\
Morten Welinder's avatar
Morten Welinder committed
36
	$(DIST_SAMPLES)
37

38
pkgconfigdir = $(libdir)/pkgconfig
39 40 41 42
pkgconfig_DATA = libspreadsheet-@GNUMERIC_API_VER@.pc

libspreadsheet-@GNUMERIC_API_VER@.pc: libspreadsheet.pc
	cp $< $@
43

44
@INTLTOOL_DESKTOP_RULE@
Morten Welinder's avatar
Morten Welinder committed
45
@INTLTOOL_XML_RULE@
46

Morten Welinder's avatar
Morten Welinder committed
47
appdatadir = $(datadir)/appdata
Morten Welinder's avatar
Morten Welinder committed
48
appdata_in_files = gnumeric.appdata.xml.in
Morten Welinder's avatar
Morten Welinder committed
49
appdata_DATA = gnumeric.appdata.xml
Morten Welinder's avatar
Morten Welinder committed
50 51 52

gnumeric.appdata.xml: gnumeric.appdata.xml.in Makefile $(INTLTOOL_MERGE) $(POFILES_FULL)
	LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@
Morten Welinder's avatar
Morten Welinder committed
53

54 55 56
Applicationsdir = $(datadir)/applications/
Applications_in_files = gnumeric.desktop.in
Applications_DATA = gnumeric.desktop
57

58
gnumeric.desktop: gnumeric.desktop.in Makefile $(INTLTOOL_MERGE) $(POFILES_FULL)
Jean Bréfort's avatar
Jean Bréfort committed
59
	LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@.tmp
60 61 62
	sed -e 's/F_OR_U/U/' <$@.tmp >$@.tmp2
	sed -e 's/BUGZILLAVERSION/@VERSION@/' <$@.tmp2 >$@
	rm -f $@.tmp $@.tmp2
63

64
configexecincludedir = $(includedir)/libspreadsheet-@GNUMERIC_API_VER@/spreadsheet
65 66 67 68 69 70 71 72
install-exec-local: gnumeric-features.h
	$(mkinstalldirs) $(DESTDIR)$(configexecincludedir)
	file=$(DESTDIR)$(configexecincludedir)/$< ; \
	if test -r $$file && cmp -s $< $$file; then :; \
	else $(INSTALL_DATA) $< $$file; fi

uninstall-local:
	rm -f $(DESTDIR)$(configexecincludedir)/gnumeric-features.h
Jody Goldberg's avatar
Jody Goldberg committed
73

74 75
## If I understand this correctly, this hack is needed only --with-perl:
if WITH_PERL
Jody Goldberg's avatar
Jody Goldberg committed
76
# disable the check because the old perl plugin is hard to clean
Jody Goldberg's avatar
Jody Goldberg committed
77
distuninstallcheck:
Jody Goldberg's avatar
Jody Goldberg committed
78
	@:
79
endif