Fix service type database building on Solaris (Patch from Padraig O'Briain)
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1394 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
diff --git a/service-type-database/Makefile.am b/service-type-database/Makefile.am
index 4e0c9f8..c41dc70 100644
--- a/service-type-database/Makefile.am
+++ b/service-type-database/Makefile.am
@@ -50,10 +50,12 @@
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 $< $@.coming
- mv $@.coming $@
+ if test -f "$@.coming"; then mv $@.coming $@; fi
CLEANFILES = service-types.db* build-db