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 18AM_CFLAGS=-I$(top_srcdir) 19 20EXTRA_DIST = \ 21 __init__.py \ 22 avahi-discover.py \ 23 avahi-discover.desktop.in.in 24 25if HAVE_PYTHON 26if HAVE_PYTHON_DBUS 27if HAVE_PYGTK 28 29pythonscripts = 30 31desktopdir = $(datadir)/applications 32desktop_DATA = 33 34avahi_discoverdir = $(pythondir)/avahi_discover 35avahi_discover_PYTHON = 36 37if HAVE_GDBM 38pythonscripts += \ 39 avahi-discover 40desktop_DATA += avahi-discover.desktop 41@INTLTOOL_DESKTOP_RULE@ 42avahi_discover_PYTHON += __init__.py 43endif 44 45if HAVE_DBM 46pythonscripts += \ 47 avahi-discover 48desktop_DATA += avahi-discover.desktop 49@INTLTOOL_DESKTOP_RULE@ 50avahi_discover_PYTHON += __init__.py 51endif 52 53avahi-discover.desktop.in: avahi-discover.desktop.in.in 54 $(AM_V_GEN)sed -e 's,@bindir\@,$(bindir),g' $< > $@ 55 56avahi-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 63bin_SCRIPTS = $(pythonscripts) 64 65CLEANFILES = $(pythonscripts) $(desktop_DATA) *.pyc *.pyo avahi-discover.desktop.in 66 67endif 68endif 69endif 70