- $(INSTALL_SCRIPT) make_catalog_backup $(DESTDIR)$(scriptdir)/make_catalog_backup
- $(INSTALL_SCRIPT) delete_catalog_backup $(DESTDIR)$(scriptdir)/delete_catalog_backup
- $(INSTALL_SCRIPT) grant_mysql_privileges $(DESTDIR)$(scriptdir)/grant_mysql_privileges
-
-uninstall:
- (cd $(DESTDIR)$(scriptdir); $(RMF) create_@DB_NAME@_database)
- (cd $(DESTDIR)$(scriptdir); $(RMF) drop_@DB_NAME@_tables)
- (cd $(DESTDIR)$(scriptdir); $(RMF) make_@DB_NAME@_tables)
- (cd $(DESTDIR)$(scriptdir); $(RMF) update_@DB_NAME@_tables)
- (cd $(DESTDIR)$(scriptdir); $(RMF) drop_bacula_tables)
- (cd $(DESTDIR)$(scriptdir); $(RMF) make_bacula_tables)
+ $(INSTALL_SCRIPT) make_bacula_tables $(DESTDIR)$(scriptdir)/make_bacula_tables
+ $(INSTALL_SCRIPT) grant_bacula_privileges $(DESTDIR)$(scriptdir)/grant_bacula_privileges
+ $(INSTALL_SCRIPT) drop_bacula_tables $(DESTDIR)$(scriptdir)/drop_bacula_tables
+ $(INSTALL_SCRIPT) drop_bacula_database $(DESTDIR)$(scriptdir)/drop_bacula_database
+
+ @filename=make_catalog_backup; \
+ if test -f $(DESTDIR)$(scriptdir)/$$filename; then \
+ destname=$$filename.new; \
+ echo " ==> Found existing $$filename, installing new file as $$destname"; \
+ else \
+ destname=$$filename; \
+ fi; \
+ echo "$(INSTALL_SCRIPT) $$filename $(DESTDIR)$(scriptdir)/$$destname"; \
+ $(INSTALL_SCRIPT) $$filename $(DESTDIR)$(scriptdir)/$$destname
+ @filename=delete_catalog_backup; \
+ if test -f $(DESTDIR)$(scriptdir)/$$filename; then \
+ destname=$$filename.new; \
+ echo " ==> Found existing $$filename, installing new file as $$destname"; \
+ else \
+ destname=$$filename; \
+ fi; \
+ echo "$(INSTALL_SCRIPT) $$filename $(DESTDIR)$(scriptdir)/$$destname"; \
+ $(INSTALL_SCRIPT) $$filename $(DESTDIR)$(scriptdir)/$$destname
+
+uninstall: @LIBTOOL_UNINSTALL_TARGET@ @INCLUDE_UNINSTALL_TARGET@
+ (cd $(DESTDIR)$(scriptdir); $(RMF) create_@DB_TYPE@_database)
+ (cd $(DESTDIR)$(scriptdir); $(RMF) update_@DB_TYPE@_tables)
+ (cd $(DESTDIR)$(scriptdir); $(RMF) make_@DB_TYPE@_tables)
+ (cd $(DESTDIR)$(scriptdir); $(RMF) grant_@DB_TYPE@_privileges)
+ (cd $(DESTDIR)$(scriptdir); $(RMF) drop_@DB_TYPE@_tables)
+ (cd $(DESTDIR)$(scriptdir); $(RMF) drop_@DB_TYPE@_database)
+
+ (cd $(DESTDIR)$(scriptdir); $(RMF) create_bacula_database)