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

13
icons16dir = $(DESKTOP_DATADIR)/icons/hicolor/16x16/apps
14 15
icons16_DATA = 16x16/gimp.png

16
icons22dir = $(DESKTOP_DATADIR)/icons/hicolor/22x22/apps
17 18
icons22_DATA = 22x22/gimp.png

19
icons24dir = $(DESKTOP_DATADIR)/icons/hicolor/24x24/apps
20 21
icons24_DATA = 24x24/gimp.png

22
icons32dir = $(DESKTOP_DATADIR)/icons/hicolor/32x32/apps
23 24
icons32_DATA = 32x32/gimp.png

25
icons48dir = $(DESKTOP_DATADIR)/icons/hicolor/48x48/apps
26 27
icons48_DATA = 48x48/gimp.png

28 29
icons256dir = $(DESKTOP_DATADIR)/icons/hicolor/256x256/apps
icons256_DATA = 256x256/gimp.png
30

31 32 33

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

36 37
endif

38 39

EXTRA_DIST = \
40
	gimp.desktop.in.in	\
41 42 43 44 45
	16x16/gimp.png		\
	22x22/gimp.png		\
	24x24/gimp.png		\
	32x32/gimp.png		\
	48x48/gimp.png		\
46
	64x64/gimp.png		\
47
	256x256/gimp.png	
48

49 50 51 52 53

DISTCLEANFILES = $(desktop_files)


gimp.desktop: gimp.desktop.in $(wildcard $(top_srcdir)/po/*.po)
54
	$(INTLTOOL_MERGE) $(top_srcdir)/po $< $(@) -d -u -c $(top_builddir)/po/.intltool-merge-cache
55 56 57 58 59 60 61 62 63 64

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