Makefile.am 1.61 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11
SUBDIRS = albumthemes glade

@INTLTOOL_DESKTOP_RULE@

desktopdir = $(datadir)/applications
desktop_in_files=gthumb.desktop.in
desktop_DATA = $(desktop_in_files:.desktop.in=.desktop) 

applicationsdir = $(datadir)/application-registry
applications_DATA = gthumb.applications

12
icondir = $(datadir)/icons/hicolor/48x48/apps
13
icon_DATA = gthumb.png
14

15 16 17 18 19 20 21 22 23 24 25 26
gtk_update_icon_cache = gtk-update-icon-cache -f -t $(datadir)/icons/hicolor

install-data-hook:
	@-if test -z "$(DESTDIR)"; then \
		echo "Updating Gtk icon cache."; \
		$(gtk_update_icon_cache); \
	else \
		echo "*** Icon cache not updated.  After install, run this:"; \
		echo "***   $(gtk_update_icon_cache)"; \
	fi


27 28 29 30 31 32 33 34
man_MANS = gthumb.1

schemadir = @GCONF_SCHEMA_FILE_DIR@
schema_in_files = gthumb.schemas.in
schema_DATA = $(schema_in_files:.schemas.in=.schemas)

@INTLTOOL_SCHEMAS_RULE@

35 36 37 38 39 40
bonobodir = $(libdir)/bonobo
serverdir = $(libdir)/bonobo/servers
server_in_files = GNOME_GThumb.server.in.in
server_DATA = $(server_in_files:.server.in.in=.server)
$(server_in_files:.server.in.in=.server.in): $(server_in_files)
	sed -e "s|\@BONOBODIR\@|$(bonobodir)|" $< > $@
41 42
@INTLTOOL_SERVER_RULE@

43
if GCONF_SCHEMAS_INSTALL
44
install-data-local:
45
	GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) $(GCONFTOOL) --makefile-install-rule $(top_builddir)/data/$(schema_DATA)
46 47 48 49 50 51 52 53 54
endif

EXTRA_DIST = 			\
	gthumb.schemas		\
	gthumb.schemas.in	\
	$(applications_DATA)	\
	$(desktop_in_files)	\
	$(desktop_DATA)		\
	$(icon_DATA)		\
55 56
	$(man_MANS)		\
	$(server_in_files)
57 58 59

DISTCLEANFILES =                \
	$(schema_DATA)		\
60
	$(desktop_DATA)		\
61 62 63
	$(server_DATA)          \
	GNOME_GThumb.server.in  \
	GNOME_GThumb.server
64