aboutsummaryrefslogtreecommitdiff
path: root/Makefile.am
blob: 8f0bc4b222e1f21cb5605852bd11bd64e874531c (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
45
46
47
48
49
50
51
52
## Process this file with automake to produce Makefile.in

SUBDIRS = doc po src pixmaps

desktopdir = $(datadir)/applications
desktop_in_files = gnunet-gtk.desktop.in
desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)

pkgpixdir= $(pkgdatadir)

EXTRA_DIST = \
  $(pkgdata_DATA) \
  install-sh mkinstalldirs

pkgdata_DATA = \
  gnunet-gtk.glade

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

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


ACLOCAL_AMFLAGS = -I m4