X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=service-type-database%2FMakefile.am;h=fa1bd404619169f33156c9cedb890d8b1de5f800;hb=541c9791f932b788b81b7e69eee8c45114e3adb3;hp=c41dc70b1a5e6f39cd340ab99ddf4a45beae8db5;hpb=886fb074c77deb458ec387a385fde71f7c80dc13;p=catta diff --git a/service-type-database/Makefile.am b/service-type-database/Makefile.am index c41dc70..fa1bd40 100644 --- a/service-type-database/Makefile.am +++ b/service-type-database/Makefile.am @@ -1,7 +1,5 @@ -# $Id$ -# # This file is part of avahi. -# +# # avahi is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2 of the @@ -20,20 +18,21 @@ EXTRA_DIST=build-db.in service-types pkgdata_DATA=service-types +pkglib_DATA= if HAVE_PYTHON if HAVE_GDBM noinst_SCRIPTS=build-db -pkgdata_DATA+=service-types.db +pkglib_DATA+=service-types.db build-db: build-db.in - sed -e 's,@PYTHON\@,$(PYTHON),g' \ - -e 's,@DBM\@,gdbm,g' $< > $@ + $(AM_V_GEN)sed -e 's,@PYTHON\@,$(PYTHON),g' \ + -e 's,@DBM\@,gdbm,g' $< > $@ && \ chmod +x $@ service-types.db: service-types build-db - $(PYTHON) build-db $< $@.coming + $(AM_V_GEN)$(PYTHON) build-db $< $@.coming && \ mv $@.coming $@ CLEANFILES = service-types.db build-db @@ -42,19 +41,19 @@ endif if HAVE_DBM noinst_SCRIPTS=build-db -pkgdata_DATA+=service-types.db.pag service-types.db.dir +pkglib_DATA+=service-types.db.pag service-types.db.dir build-db: build-db.in - sed -e 's,@PYTHON\@,$(PYTHON),g' \ - -e 's,@DBM\@,dbm,g' $< > $@ + $(AM_V_GEN)sed -e 's,@PYTHON\@,$(PYTHON),g' \ + -e 's,@DBM\@,dbm,g' $< > $@ && \ chmod +x $@ service-types.db.pag: service-types.db - mv service-types.db.coming.pag service-types.db.pag + $(AM_V_GEN)mv service-types.db.coming.pag service-types.db.pag service-types.db.dir: service-types.db - mv service-types.db.coming.dir service-types.db.dir + $(AM_V_GEN)mv service-types.db.coming.dir service-types.db.dir service-types.db: service-types build-db - $(PYTHON) build-db $< $@.coming + $(AM_V_GEN)$(PYTHON) build-db $< $@.coming && \ if test -f "$@.coming"; then mv $@.coming $@; fi CLEANFILES = service-types.db* build-db