]> git.meshlink.io Git - catta/blob - avahi-utils/Makefile.am
* avahi-utils: replace python avahi-browse with a version written in C.
[catta] / avahi-utils / Makefile.am
1 # $Id$
2
3 # This file is part of avahi.
4 #
5 # avahi is free software; you can redistribute it and/or modify it
6 # under the terms of the GNU Lesser General Public License as
7 # published by the Free Software Foundation; either version 2 of the
8 # License, or (at your option) any later version.
9 #
10 # avahi is distributed in the hope that it will be useful, but WITHOUT
11 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
12 # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
13 # License for more details.
14 #
15 # You should have received a copy of the GNU Lesser General Public
16 # License along with avahi; if not, write to the Free Software
17 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
18 # USA.
19
20 EXTRA_DIST = \
21         avahi-publish-address.in \
22         avahi-publish-service.in \
23         avahi-bookmarks.in \
24         avahi-resolve-host-name.in \
25         avahi-resolve-address.in \
26         avahi-discover.in \
27         avahi-discover.desktop.in
28
29 SUBDIRS=avahi
30
31 if HAVE_PYTHON
32 if HAVE_PYTHON_DBUS
33 if HAVE_PYGTK
34
35 pythonscripts = \
36         avahi-publish-address \
37         avahi-publish-service \
38         avahi-bookmarks \
39         avahi-resolve-host-name \
40         avahi-resolve-address \
41         avahi-discover
42
43 desktopdir = $(datadir)/applications
44 desktop_DATA = avahi-discover.desktop
45
46 avahi-discover.desktop: avahi-discover.desktop.in
47         sed -e 's,@bindir\@,$(bindir),g' $< > $@
48         chmod +x $@
49
50 avahi-discover: avahi-discover.in
51         sed -e 's,@PYTHON\@,$(PYTHON),g' \
52                 -e 's,@interfacesdir\@,$(interfacesdir),g' $< > $@
53         chmod +x $@
54
55 avahi-publish-address: avahi-publish-address.in
56         sed -e 's,@PYTHON\@,$(PYTHON),g' $< > $@
57         chmod +x $@
58
59 avahi-publish-service: avahi-publish-service.in
60         sed -e 's,@PYTHON\@,$(PYTHON),g' $< > $@
61         chmod +x $@
62
63 avahi-bookmarks: avahi-bookmarks.in
64         sed -e 's,@PYTHON\@,$(PYTHON),g' $< > $@
65         chmod +x $@
66
67 avahi-resolve-host-name: avahi-resolve-host-name.in
68         sed -e 's,@PYTHON\@,$(PYTHON),g' $< > $@
69         chmod +x $@
70
71 avahi-resolve-address: avahi-resolve-address.in
72         sed -e 's,@PYTHON\@,$(PYTHON),g' $< > $@
73         chmod +x $@
74
75 bin_SCRIPTS = $(pythonscripts)
76 CLEANFILES = $(pythonscripts) $(desktop_DATA)
77
78 endif
79 endif
80 endif
81
82 if HAVE_DBUS
83
84 bin_PROGRAMS = avahi-browse
85
86 avahi_browse_SOURCES = avahi-browse.c sigint.c
87 avahi_browse_CFLAGS = $(AM_CFLAGS)
88 avahi_browse_LDADD = $(AM_LDADD) ../avahi-client/libavahi-client.la ../avahi-common/libavahi-common.la
89
90 endif