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)
|
|
|
|
|
2013-11-16 23:23:34 +08:00
|
|
|
appdata_in_files = gimp.appdata.xml.in
|
|
|
|
appdata_files = $(appdata_in_files:.appdata.xml.in=.appdata.xml)
|
2005-06-16 22:50:43 +08:00
|
|
|
|
2005-06-16 23:31:30 +08:00
|
|
|
if DESKTOP_DATADIR
|
2005-06-16 22:50:43 +08:00
|
|
|
|
2006-04-12 06: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
|
|
|
|
2013-11-16 23:23:34 +08:00
|
|
|
appdatadir = $(DESKTOP_DATADIR)/appdata
|
|
|
|
appdata_DATA = $(appdata_files)
|
2006-03-29 19:59:51 +08:00
|
|
|
|
2006-04-12 06:47:15 +08:00
|
|
|
icons16dir = $(DESKTOP_DATADIR)/icons/hicolor/16x16/apps
|
2006-03-29 19:59:51 +08:00
|
|
|
icons16_DATA = 16x16/gimp.png
|
|
|
|
|
2006-04-12 06:47:15 +08:00
|
|
|
icons22dir = $(DESKTOP_DATADIR)/icons/hicolor/22x22/apps
|
2006-03-29 19:59:51 +08:00
|
|
|
icons22_DATA = 22x22/gimp.png
|
|
|
|
|
2006-04-12 06:47:15 +08:00
|
|
|
icons24dir = $(DESKTOP_DATADIR)/icons/hicolor/24x24/apps
|
2006-03-29 19:59:51 +08:00
|
|
|
icons24_DATA = 24x24/gimp.png
|
|
|
|
|
2006-04-12 06:47:15 +08:00
|
|
|
icons32dir = $(DESKTOP_DATADIR)/icons/hicolor/32x32/apps
|
2006-03-29 19:59:51 +08:00
|
|
|
icons32_DATA = 32x32/gimp.png
|
|
|
|
|
2006-04-12 06:47:15 +08:00
|
|
|
icons48dir = $(DESKTOP_DATADIR)/icons/hicolor/48x48/apps
|
2006-03-29 19:59:51 +08:00
|
|
|
icons48_DATA = 48x48/gimp.png
|
|
|
|
|
2010-02-16 17:53:40 +08:00
|
|
|
icons256dir = $(DESKTOP_DATADIR)/icons/hicolor/256x256/apps
|
|
|
|
icons256_DATA = 256x256/gimp.png
|
2006-03-29 19:59:51 +08:00
|
|
|
|
2006-04-03 15:08:15 +08:00
|
|
|
|
|
|
|
# touch the toplevel icon directory as required by the icon theme spec
|
|
|
|
install-data-hook:
|
2006-04-12 06:47:15 +08:00
|
|
|
touch $(DESTDIR)$(DESKTOP_DATADIR)/icons/hicolor
|
2006-04-03 15:08:15 +08:00
|
|
|
|
2005-06-16 23:31:30 +08:00
|
|
|
endif
|
|
|
|
|
2005-06-16 22:50:43 +08:00
|
|
|
EXTRA_DIST = \
|
2013-11-16 23:23:34 +08:00
|
|
|
$(appdata_in_files) \
|
2005-06-16 23:31:30 +08:00
|
|
|
gimp.desktop.in.in \
|
2006-03-29 19:59:51 +08:00
|
|
|
16x16/gimp.png \
|
|
|
|
22x22/gimp.png \
|
|
|
|
24x24/gimp.png \
|
|
|
|
32x32/gimp.png \
|
|
|
|
48x48/gimp.png \
|
2011-04-10 17:32:50 +08:00
|
|
|
64x64/gimp.png \
|
2010-02-16 18:14:03 +08:00
|
|
|
256x256/gimp.png
|
2010-02-16 17:53:40 +08:00
|
|
|
|
2005-06-16 22:50:43 +08:00
|
|
|
|
2013-11-16 23:23:34 +08:00
|
|
|
DISTCLEANFILES = $(desktop_files) $(appdata_files)
|
2005-06-16 22:50:43 +08:00
|
|
|
|
2013-11-16 23:23:34 +08:00
|
|
|
@INTLTOOL_XML_RULE@
|
2005-06-16 22:50:43 +08:00
|
|
|
|
|
|
|
gimp.desktop: gimp.desktop.in $(wildcard $(top_srcdir)/po/*.po)
|
2007-09-03 21:20:42 +08:00
|
|
|
$(INTLTOOL_MERGE) $(top_srcdir)/po $< $(@) -d -u -c $(top_builddir)/po/.intltool-merge-cache
|
2005-06-16 22:50:43 +08:00
|
|
|
|
|
|
|
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
|