1 # This file is part of avahi.
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.
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.
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
18 EXTRA_DIST = __init__.py ServiceTypeDatabase.py.in
20 pkglibdatadir=$(libdir)/avahi
24 avahidir = $(pythondir)/avahi
27 nodist_avahi_SCRIPTS = ServiceTypeDatabase.py
29 ServiceTypeDatabase.py: ServiceTypeDatabase.py.in
30 $(AM_V_GEN)sed -e 's,@PYTHON\@,$(PYTHON),g' \
31 -e 's,@DBM\@,gdbm,g' \
32 -e 's,@FIRST_KEY\@,key = self.db.firstkey(),g' \
33 -e 's,@CHECK_KEY\@,while key is not None:,g' \
34 -e 's,@NEXT_KEY\@,key = self.db.nextkey(key),g' \
35 -e 's,@pkglibdatadir\@,$(pkglibdatadir),g' $< > $@ && \
40 nodist_avahi_SCRIPTS = ServiceTypeDatabase.py
42 ServiceTypeDatabase.py: ServiceTypeDatabase.py.in
43 $(AM_V_GEN)sed -e 's,@PYTHON\@,$(PYTHON),g' \
45 -e 's,@FIRST_KEY\@,keys = self.db.keys(),g' \
46 -e 's,@CHECK_KEY\@,for key in keys:,g' \
47 -e 's,@NEXT_KEY\@,,g' \
48 -e 's,@pkglibdatadir\@,$(pkglibdatadir),g' $< > $@ && \
52 avahi_PYTHON = $(avahi_SCRIPTS)
56 avahi_PYTHON += __init__.py
61 CLEANFILES=*.pyc *.pyo ServiceTypeDatabase.py