2005-06-16 22:50:43 +08:00
|
|
|
## Makefile.am for gimp/desktop
|
|
|
|
|
|
|
|
desktop_in_files = gimp.desktop.in.in
|
|
|
|
desktop_files = $(desktop_in_files:.desktop.in.in=.desktop)
|
|
|
|
|
|
|
|
|
2005-06-16 23:31:30 +08:00
|
|
|
if DESKTOP_DATADIR
|
2005-06-16 22:50:43 +08:00
|
|
|
|
2005-06-16 23:47:15 +08:00
|
|
|
applicationsdir = @DESKTOP_DATADIR@/applications
|
2005-06-16 23:31:30 +08:00
|
|
|
applications_DATA = $(desktop_files)
|
2005-06-16 22:50:43 +08:00
|
|
|
|
2005-06-16 23:49:56 +08:00
|
|
|
iconsdir = @DESKTOP_DATADIR@/icons/hicolor/48x48/apps
|
|
|
|
icons_DATA = gimp.png
|
2005-06-16 23:31:30 +08:00
|
|
|
|
2005-06-16 23:47:15 +08:00
|
|
|
mimeinfodir = @DESKTOP_DATADIR@/mime-info
|
2005-06-16 23:31:30 +08:00
|
|
|
mimeinfo_DATA = gimp.keys
|
2005-06-16 22:50:43 +08:00
|
|
|
|
2005-06-16 23:47:15 +08:00
|
|
|
registrydir = @DESKTOP_DATADIR@/application-registry
|
2005-06-16 22:50:43 +08:00
|
|
|
registry_DATA = gimp.applications
|
|
|
|
|
2005-06-16 23:31:30 +08:00
|
|
|
endif
|
|
|
|
|
2005-06-16 22:50:43 +08:00
|
|
|
|
|
|
|
EXTRA_DIST = \
|
2005-06-16 23:31:30 +08:00
|
|
|
gimp.applications.in \
|
|
|
|
gimp.desktop.in.in \
|
|
|
|
gimp.keys.in \
|
|
|
|
gimp.png
|
2005-06-16 22:50:43 +08:00
|
|
|
|
|
|
|
|
|
|
|
DISTCLEANFILES = $(desktop_files)
|
|
|
|
|
|
|
|
|
|
|
|
gimp.desktop: gimp.desktop.in $(wildcard $(top_srcdir)/po/*.po)
|
|
|
|
$(INTLTOOL_MERGE) $(top_srcdir)/po $< $(@) -d -u -c $(top_builddir)/po/.intltool-merge-cachemake
|
|
|
|
|
|
|
|
validate: gimp.desktop
|
|
|
|
( dfvalidate=`which desktop-file-validate`; \
|
|
|
|
if test x$$dfvalidate != x && test -x $$dfvalidate; then \
|
|
|
|
$$dfvalidate $< || ( echo "* $< INVALID *"; exit 1 ) \
|
|
|
|
else \
|
|
|
|
echo "Can't find desktop-file-validate to validate $<; proceed with fingers crossed..."; \
|
|
|
|
fi )
|
|
|
|
|
|
|
|
dist-hook: validate
|