summaryrefslogtreecommitdiff
path: root/Makefile.am
blob: 5326c143244237c41c06d7fefaa841dc2372df9e (plain)
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
## Process this file with automake to produce Makefile.in

SUBDIRS = po libegg src obex python

EXTRA_DIST = \
	intltool-extract.in intltool-merge.in intltool-update.in \
	COPYING COPYING.gnomebt TODO $(PACKAGE).pc.in

pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = $(PACKAGE).pc

install-data-local:
	@$(NORMAL_INSTALL)
	if test -d $(srcdir)/pixmaps; then \
	  $(mkinstalldirs) $(DESTDIR)$(datadir)/$(PACKAGE)/pixmaps; \
	  for pixmap in $(srcdir)/pixmaps/*.png; do \
	    if test -f $$pixmap; then \
	      $(INSTALL_DATA) $$pixmap $(DESTDIR)$(datadir)/$(PACKAGE)/pixmaps; \
	    fi \
	  done \
	fi

	if test -d $(srcdir)/ui; then \
	  $(mkinstalldirs) $(DESTDIR)$(datadir)/$(PACKAGE); \
	  for uifile in $(srcdir)/ui/*.glade; do \
	    if test -f $$uifile; then \
	      $(INSTALL_DATA) $$uifile $(DESTDIR)$(datadir)/$(PACKAGE); \
	    fi \
	  done \
	fi

dist-hook:
	if test -d pixmaps; then \
	  mkdir $(distdir)/pixmaps; \
	  for pixmap in pixmaps/*; do \
	    if test -f $$pixmap; then \
	      cp -p $$pixmap $(distdir)/pixmaps; \
	    fi \
	  done \
	fi
	if test -d ui; then \
	  mkdir $(distdir)/ui; \
	  for uifile in ui/*; do \
	    if test -f $$uifile; then \
	      cp -p $$uifile $(distdir)/ui; \
	    fi \
	  done \
	fi