Makefile.am 1.89 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

9
applicationsdir = $(DESKTOP_DATADIR)/applications
10
applications_DATA = $(desktop_files)
11

12
mimeinfodir = $(DESKTOP_DATADIR)/mime-info
13
mimeinfo_DATA = gimp.keys
14

15
registrydir = $(DESKTOP_DATADIR)/application-registry
16 17
registry_DATA = gimp.applications

Sven Neumann's avatar
Sven Neumann committed
18

19
icons16dir = $(DESKTOP_DATADIR)/icons/hicolor/16x16/apps
Sven Neumann's avatar
Sven Neumann committed
20 21
icons16_DATA = 16x16/gimp.png

22
icons22dir = $(DESKTOP_DATADIR)/icons/hicolor/22x22/apps
Sven Neumann's avatar
Sven Neumann committed
23 24
icons22_DATA = 22x22/gimp.png

25
icons24dir = $(DESKTOP_DATADIR)/icons/hicolor/24x24/apps
Sven Neumann's avatar
Sven Neumann committed
26 27
icons24_DATA = 24x24/gimp.png

28
icons32dir = $(DESKTOP_DATADIR)/icons/hicolor/32x32/apps
Sven Neumann's avatar
Sven Neumann committed
29 30
icons32_DATA = 32x32/gimp.png

31
icons48dir = $(DESKTOP_DATADIR)/icons/hicolor/48x48/apps
Sven Neumann's avatar
Sven Neumann committed
32 33
icons48_DATA = 48x48/gimp.png

34
icons64dir = $(DESKTOP_DATADIR)/icons/hicolor/64x64/apps
Sven Neumann's avatar
Sven Neumann committed
35 36
icons64_DATA = 64x64/gimp.png

37
iconsscalabledir = $(DESKTOP_DATADIR)/icons/hicolor/scalable/apps
Sven Neumann's avatar
Sven Neumann committed
38 39
iconsscalable_DATA = scalable/gimp.svg

40 41 42

# touch the toplevel icon directory as required by the icon theme spec
install-data-hook:
43
	touch $(DESTDIR)$(DESKTOP_DATADIR)/icons/hicolor
44

45 46
endif

47 48

EXTRA_DIST = \
49 50 51
	gimp.applications.in	\
	gimp.desktop.in.in	\
	gimp.keys.in		\
Sven Neumann's avatar
Sven Neumann committed
52 53 54 55 56 57 58
	16x16/gimp.png		\
	22x22/gimp.png		\
	24x24/gimp.png		\
	32x32/gimp.png		\
	48x48/gimp.png		\
	64x64/gimp.png		\
	scalable/gimp.svg
59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74

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