X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=service-type-database%2FMakefile.am;h=6419ba7729449d138b2e1798a7cde4c0e58b4110;hb=e11fda547143d8b1e931d77f1661668d41473c73;hp=1692a0b11e2ecf796a74ebd89f03391837983e33;hpb=b7d566fc3ec60c0fbbca22af273bc67fdc1372fa;p=catta diff --git a/service-type-database/Makefile.am b/service-type-database/Makefile.am index 1692a0b..6419ba7 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,12 +18,13 @@ 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' \ @@ -33,7 +32,8 @@ build-db: build-db.in chmod +x $@ service-types.db: service-types build-db - $(PYTHON) build-db $(srcdir)/$< $@ + $(PYTHON) build-db $< $@.coming + mv $@.coming $@ CLEANFILES = service-types.db build-db @@ -41,15 +41,20 @@ endif if HAVE_DBM noinst_SCRIPTS=build-db -pkgdata_DATA+=service-types.db.* +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' $< > $@ chmod +x $@ +service-types.db.pag: service-types.db + 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 service-types.db: service-types build-db - $(PYTHON) build-db $(srcdir)/$< $@ + $(PYTHON) build-db $< $@.coming + if test -f "$@.coming"; then mv $@.coming $@; fi CLEANFILES = service-types.db* build-db