2005-06-16 22:50:43 +08:00
|
|
|
## Makefile.am for gimp/desktop
|
|
|
|
|
2018-03-30 21:53:19 +08:00
|
|
|
desktop_in_files = \
|
|
|
|
gimp.desktop.in.in
|
|
|
|
|
2005-06-16 22:50:43 +08:00
|
|
|
desktop_files = $(desktop_in_files:.desktop.in.in=.desktop)
|
|
|
|
|
2018-03-30 21:53:19 +08:00
|
|
|
appstream_in_files = \
|
|
|
|
org.gimp.GIMP.appdata.xml.in \
|
|
|
|
gimp-data-extras.metainfo.xml.in
|
|
|
|
|
2017-06-17 10:31:22 +08:00
|
|
|
appstream_files = $(appstream_in_files:.xml.in=.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
|
|
|
|
2018-04-02 06:58:30 +08:00
|
|
|
appdatadir = $(DESKTOP_DATADIR)/metainfo
|
2017-06-17 10:31:22 +08:00
|
|
|
appdata_DATA = $(appstream_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 = \
|
2017-06-17 10:31:22 +08:00
|
|
|
$(appstream_in_files) \
|
|
|
|
test-appdata.sh \
|
|
|
|
gimp.desktop.in.in \
|
|
|
|
16x16/gimp.png \
|
|
|
|
22x22/gimp.png \
|
|
|
|
24x24/gimp.png \
|
|
|
|
32x32/gimp.png \
|
|
|
|
48x48/gimp.png \
|
|
|
|
64x64/gimp.png \
|
2016-06-02 07:50:16 +08:00
|
|
|
256x256/gimp.png
|
2010-02-16 17:53:40 +08:00
|
|
|
|
2005-06-16 22:50:43 +08:00
|
|
|
|
2017-06-17 10:31:22 +08:00
|
|
|
DISTCLEANFILES = $(desktop_files) $(appstream_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
|
2017-05-23 23:39:16 +08:00
|
|
|
|
|
|
|
if HAVE_APPSTREAM_UTIL
|
2018-02-01 10:51:55 +08:00
|
|
|
TESTS_ENVIRONMENT = GIMP_TESTING_ABS_TOP_BUILDDIR=@abs_top_builddir@
|
2017-05-23 23:39:16 +08:00
|
|
|
TESTS = test-appdata.sh
|
|
|
|
endif
|