-
Notifications
You must be signed in to change notification settings - Fork 22
/
Makefile.am
79 lines (63 loc) · 2.93 KB
/
Makefile.am
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
SUBDIRS = . po po-functions src plugins icons @COMPONENT_DIR@ templates doc tools schemas test introspection
XML_I18N_XML_KIND = --pass-through
# We used to distribute old ChangeLog files too.
change_logs = ChangeLog
CLEANFILES = org.gnumeric.gnumeric.desktop org.gnumeric.gnumeric.appdata.xml
DISTCLEANFILES = intltool-extract intltool-merge intltool-update $(pkgconfig_DATA)
# 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.)
DISTCHECK_CONFIGURE_FLAGS = --without-perl --without-python \
--enable-introspection=auto \
--with-gir-dir=\$${datadir}/gir-1.0 \
--with-typelib-dir=\$${libdir}/girepository-1.0 \
--with-gi-overrides-dir=\$${libdir}/gi/overrides \
--with-goffice-plugins-dir=\$${libdir}/goffice
DIST_SAMPLES = $(shell (cd $(srcdir)/test && perl -I. -e 'use GnumericTest; foreach (&GnumericTest::corpus("dist")) { print "$$_\n"; }'))
EXTRA_DIST = \
README HACKING NEWS BEVERAGES BUGS MAINTAINERS AUTHORS $(change_logs) \
COPYING COPYING-gpl2 COPYING-gpl3 \
org.gnumeric.gnumeric.appdata.xml.in \
org.gnumeric.gnumeric.desktop.in \
gnumeric.mime \
gnumeric.xsd \
intltool-extract.in \
intltool-merge.in \
intltool-update.in \
libspreadsheet.pc.in \
$(DIST_SAMPLES)
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libspreadsheet-@[email protected]
libspreadsheet-@[email protected]: libspreadsheet.pc
cp $< $@
@INTLTOOL_DESKTOP_RULE@
@INTLTOOL_XML_RULE@
appdatadir = $(datadir)/metainfo
appdata_in_files = org.gnumeric.gnumeric.appdata.xml.in
appdata_DATA = org.gnumeric.gnumeric.appdata.xml
# Don't set the date inside this xml file. We want reproducible builds.
org.gnumeric.gnumeric.appdata.xml: org.gnumeric.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 $< [email protected]
sed -e 's/##VERSION##/@VERSION@/' <[email protected] >$@
rm -f [email protected]
Applicationsdir = $(datadir)/applications/
Applications_in_files = org.gnumeric.gnumeric.desktop.in
Applications_DATA = org.gnumeric.gnumeric.desktop
org.gnumeric.gnumeric.desktop: org.gnumeric.gnumeric.desktop.in Makefile $(INTLTOOL_MERGE) $(POFILES_FULL)
LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [email protected]
sed -e 's/F_OR_U/U/' <[email protected] >$@
rm -f [email protected]
configexecincludedir = $(includedir)/libspreadsheet-@GNUMERIC_API_VER@/spreadsheet
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
## If I understand this correctly, this hack is needed only --with-perl:
if WITH_PERL
# disable the check because the old perl plugin is hard to clean
distuninstallcheck:
@:
endif