Makefile.am 1.07 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
## Makefile.am for gimp/desktop

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


applicationsdir = @DESKTOP_DATADIR@/applications

applications_DATA = $(desktop_files)


icondir = @DESKTOP_DATADIR@/icons/hicolor/48x48/apps

icon_DATA = gimp.png


mimeinfodir = @DESKTOP_DATADIR@/mime-info

mimeinfo_DATA = gimp.keys


registrydir = @DESKTOP_DATADIR@/application-registry

registry_DATA = gimp.applications


EXTRA_DIST = \
	$(desktop_in_files)	\
	$(icon_DATA)		\
	$(mimeinfo_DATA)	\
	$(registry_DATA)


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