]> git.meshlink.io Git - catta/blob - avahi-python/avahi-discover/Makefile.am
fix avahi_netlink_new to allow multiple netlinks per process
[catta] / avahi-python / avahi-discover / Makefile.am
1 # This file is part of avahi.
2 #
3 # avahi is free software; you can redistribute it and/or modify it
4 # under the terms of the GNU Lesser General Public License as
5 # published by the Free Software Foundation; either version 2 of the
6 # License, or (at your option) any later version.
7 #
8 # avahi is distributed in the hope that it will be useful, but WITHOUT
9 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
10 # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
11 # License for more details.
12 #
13 # You should have received a copy of the GNU Lesser General Public
14 # License along with avahi; if not, write to the Free Software
15 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
16 # USA.
17
18 AM_CFLAGS=-I$(top_srcdir)
19
20 EXTRA_DIST = \
21         __init__.py \
22         avahi-discover.py \
23         avahi-discover.desktop.in.in
24
25 if HAVE_PYTHON
26 if HAVE_PYTHON_DBUS
27 if HAVE_PYGTK
28
29 pythonscripts =
30
31 desktopdir = $(datadir)/applications
32 desktop_DATA =
33
34 avahi_discoverdir = $(pythondir)/avahi_discover
35 avahi_discover_PYTHON =
36
37 if HAVE_GDBM
38 pythonscripts += \
39         avahi-discover
40 desktop_DATA += avahi-discover.desktop
41 @INTLTOOL_DESKTOP_RULE@
42 avahi_discover_PYTHON += __init__.py
43 endif
44
45 if HAVE_DBM
46 pythonscripts += \
47         avahi-discover
48 desktop_DATA += avahi-discover.desktop
49 @INTLTOOL_DESKTOP_RULE@
50 avahi_discover_PYTHON += __init__.py
51 endif
52
53 avahi-discover.desktop.in: avahi-discover.desktop.in.in
54         $(AM_V_GEN)sed -e 's,@bindir\@,$(bindir),g' $< > $@
55
56 avahi-discover: avahi-discover.py
57         $(AM_V_GEN)sed -e 's,@PYTHON\@,$(PYTHON),g' \
58                 -e 's,@GETTEXT_PACKAGE\@,"$(GETTEXT_PACKAGE)",g' \
59                 -e 's,@LOCALEDIR\@,"$(avahilocaledir)",g' \
60                 -e 's,@interfacesdir\@,$(interfacesdir),g' $< > $@ && \
61         chmod +x $@
62
63 bin_SCRIPTS = $(pythonscripts)
64
65 CLEANFILES = $(pythonscripts) $(desktop_DATA) *.pyc *.pyo avahi-discover.desktop.in
66
67 endif
68 endif
69 endif