Makefile.am 1.08 KB
Newer Older
1 2 3 4 5 6
## Makefile.am for gimp/desktop

desktop_in_files = gimp.desktop.in.in
desktop_files = $(desktop_in_files:.desktop.in.in=.desktop)


7
if DESKTOP_DATADIR
8

Sven Neumann's avatar
Sven Neumann committed
9
applicationsdir = @DESKTOP_DATADIR@/applications
10
applications_DATA = $(desktop_files)
11

Sven Neumann's avatar
Sven Neumann committed
12
icondir = @DESKTOP_DATADIR@/icons/hicolor/48x48/apps
13 14
icon_DATA = gimp.png

Sven Neumann's avatar
Sven Neumann committed
15
mimeinfodir = @DESKTOP_DATADIR@/mime-info
16
mimeinfo_DATA = gimp.keys
17

Sven Neumann's avatar
Sven Neumann committed
18
registrydir = @DESKTOP_DATADIR@/application-registry
19 20
registry_DATA = gimp.applications

21 22
endif

23 24

EXTRA_DIST = \
25 26 27 28
	gimp.applications.in	\
	gimp.desktop.in.in	\
	gimp.keys.in		\
	gimp.png
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45


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