aboutsummaryrefslogtreecommitdiff
path: root/pixmaps/Makefile.am
blob: d4cbc0543083b16466648416ec7f50e07934a0dd (plain) (blame)
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
theme=hicolor
themedir="$(datadir)/icons/$(theme)"
theme_icons = \
 apps,gnunet-fs-gtk.svg \
 apps,gnunet-fs-gtk-16.png \
 apps,gnunet-fs-gtk-22.png \
 apps,gnunet-fs-gtk-24.png \
 apps,gnunet-fs-gtk-32.png

pkgpixdir= $(pkgdatadir)

install_icon_exec=${top_srcdir}/pixmaps/icon-theme-installer -d "x${DESTDIR}" -t ${theme} -s ${srcdir} -b ${themedir} -m "${mkinstalldirs}" -x "${INSTALL_DATA}"

install-data-local:
	$(mkinstalldirs) $(DESTDIR)$(pkgpixdir)
	@$(NORMAL_INSTALL)
	for pixmap in $(srcdir)/pixmaps/*.{png,svg}; do \
	  if test -f $$pixmap; then \
	    $(INSTALL_DATA) $$pixmap $(DESTDIR)$(pkgpixdir); \
	  fi \
	done
	$(install_icon_exec) -i "${theme_icons}"

dist-hook:
	mkdir $(distdir)/pixmaps; \
	for pixmap in $(srcdir)/pixmaps/*.{png,svg}; do \
	    if test -f $$pixmap; then \
	      cp -p $$pixmap $(distdir)/pixmaps; \
	    fi \
	done 


uninstall-hook:
	$(install_icon_exec) -u "${theme_icons}"


pkgdata_DATA = \
  gnunet_logo.png

MAINTAINERCLEANFILES = Makefile.in
EXTRA_DIST = $(pkgdata_DATA) \
  gnunet-fs-gtk.svg \
  gnunet-fs-gtk-16.png gnunet-fs-gtk-22.png gnunet-fs-gtk-24.png gnunet-fs-gtk-32.png\
  icon-theme-installer