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

3 4
XML_I18N_XML_KIND = --pass-through

5
change_logs = ChangeLog \
Jody Goldberg's avatar
Jody Goldberg committed
6 7 8
	OChangeLog-1999-07-09 \
	OChangeLog-2000-02-23 OChangeLog-2000-10-10  \
	OChangeLog-2001-06-26
9

10 11 12
# gnewdir = $(datadir)/mc/templates
# gnew_in_files = gnumeric.desktop.in
# gnew_DATA = gnumeric.desktop
13

14 15
# Mimedir = $(datadir)/mime-info
# Mime_DATA = gnumeric.keys gnumeric.mime
16

17 18 19 20 21 22 23 24 25 26 27
# Old stale functionality
#
#if WITH_GNOME
#serverdir = $(libdir)/bonobo/servers/
#server_in_files = GNOME_Gnumeric.server.in
#server_DATA	= GNOME_Gnumeric.server
#GNOME_Gnumeric.server.in : GNOME_Gnumeric.server.in.in Makefile
#	sed -e "s|\@LIBEXECDIR\@|$(libexecdir)|" $< > $@
#
# @INTLTOOL_SERVER_RULE@
#endif
28

29 30 31 32 33
# Unused as far as I know
#gnumeric.keys: gnumeric.keys.in Makefile
#	sed -e 's^\@gnumeric_icondir\@^$(gnumeric_icondir)^g' < $(srcdir)/gnumeric.keys.in > gnumeric.keys.tmp \
#	&& mv gnumeric.keys.tmp gnumeric.keys 
#
34

35
CLEANFILES = gnumeric.desktop gnumeric.keys
36
DISTCLEANFILES = intltool-extract intltool-merge intltool-update
37

38
EXTRA_DIST = \
Jody Goldberg's avatar
Jody Goldberg committed
39
	README HACKING NEWS BEVERAGES BUGS MAINTAINERS AUTHORS $(change_logs)	\
Stepan Kasal's avatar
Stepan Kasal committed
40 41 42 43 44
	gnumeric.desktop.in	\
	gnumeric.keys.in	\
	gnumeric.mime		\
	gnumeric.spec		\
	gnumeric.xsd		\
Jody Goldberg's avatar
Jody Goldberg committed
45 46 47
	intltool-extract.in	\
	intltool-merge.in	\
	intltool-update.in	\
Jody Goldberg's avatar
Jody Goldberg committed
48
	xmldocs.make 		\
49
	omf.make
50

51 52 53
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libspreadsheet-1.7.pc

54 55 56 57 58
@INTLTOOL_DESKTOP_RULE@

Applicationsdir = $(datadir)/applications/
Applications_in_files = gnumeric.desktop.in
Applications_DATA = gnumeric.desktop
59

60
gnumeric.desktop: gnumeric.desktop.in Makefile $(INTLTOOL_MERGE) $(POFILES_FULL)
61 62
	 LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@.tmp
if WITH_GNOME
63
	sed -e 's/F_OR_U/U/' <$@.tmp >$@.tmp2
64
else
65
	sed -e 's/F_OR_U/F/' <$@.tmp >$@.tmp2
66
endif
67 68
	sed -e 's/BUGZILLAVERSION/@VERSION@/' <$@.tmp2 >$@
	rm -f $@.tmp $@.tmp2
69

Stepan Kasal's avatar
Stepan Kasal committed
70
dist-hook:
71
	mkdir $(distdir)/samples
72
	cp $(srcdir)/samples/*gnumeric $(distdir)/samples	
Jody Goldberg's avatar
Jody Goldberg committed
73

74 75 76 77 78 79 80 81 82 83 84 85 86 87
## It seems the following overrides can be simplified:
## distcleancheck_listfiles = find . -type f -print | grep -v 'omf\.out' | grep -v '^\./doc'
## distuninstallcheck_listfiles = find . -type f -print | grep -v '^\./var/scrollkeeper' | grep -v 'omf' | grep -v 'figures'

# xmldocs.make is screwed:
distcleancheck_listfiles = \
  find . -type f -print -o -path ./doc -prune

# We are not able to uninstall the scrollkeeper files:
distuninstallcheck_listfiles = \
  find . -type f -print -o -path ./var/scrollkeeper -prune

## If I understand this correctly, this hack is needed only --with-perl:
if WITH_PERL
Jody Goldberg's avatar
Jody Goldberg committed
88
# disable the check because the old perl plugin is hard to clean
Jody Goldberg's avatar
Jody Goldberg committed
89
distuninstallcheck:
Jody Goldberg's avatar
Jody Goldberg committed
90
	@:
91
endif