]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/cats/Makefile.in
whitespace changes
[bacula/bacula] / bacula / src / cats / Makefile.in
index a5515147c8855e7e6bb3cabbcc7fd154515e5e4c..9bb444842e7d395f47424d59637231d5adf147f3 100644 (file)
@@ -12,6 +12,7 @@ topdir = ../..
 thisdir = src/cats
 
 DEBUG=@DEBUG@
+MKDIR=$(topdir)/autoconf/mkinstalldirs
 
 SQL_INC=@SQL_INCLUDE@
 
@@ -25,11 +26,13 @@ SVROBJS = cats.o sql.o
 LIBSRCS = mysql.c bdb.c bdb_create.c bdb_get.c bdb_update.c \
          bdb_delete.c bdb_find.c bdb_list.c \
          sql.c sql_create.c sql_delete.c sql_find.c \
-         sql_get.c sql_list.c sql_update.c sqlite.c 
+         sql_get.c sql_list.c sql_update.c sqlite.c \
+         postgresql.c
 LIBOBJS = mysql.o bdb.o bdb_create.o bdb_get.o bdb_update.o \
          bdb_delete.o bdb_find.o bdb_list.o \
          sql.o sql_create.o sql_delete.o sql_find.o \
-         sql_get.o sql_list.o sql_update.o sqlite.o
+         sql_get.o sql_list.o sql_update.o sqlite.o \
+         postgresql.o
 
 .SUFFIXES:     .c .o
 .PHONY:
@@ -60,9 +63,23 @@ clean:
 
 realclean: clean
        $(RMF) tags
-       $(RMF) make_mysql_tables grant_mysql_privileges drop_mysql_tables
-       $(RMF) create_mysql_database make_sqlite_tables sqlite
-       $(RMF) create_bdb_database drop_bdb_tables make_dbd_tables
+
+       $(RMF) create_bacula_database      update_bacula_tables     make_bacula_tables
+       $(RMF) grant_bacula_privileges     drop_bacula_tables       drop_bacula_database
+
+       $(RMF) create_bdb_database         update_bdb_tables        make_bdb_tables
+       $(RMF) grant_bdb_privileges        drop_bdb_tables          drop_bdb_database
+
+       $(RMF) create_mysql_database       update_mysql_tables      make_mysql_tables
+       $(RMF) grant_mysql_privileges      drop_mysql_tables        drop_mysql_database
+
+       $(RMF) create_postgresql_database  update_postgresql_tables make_postgresql_tables
+       $(RMF) grant_postgresql_privileges drop_postgresql_tables   drop_postgresql_database
+
+       $(RMF) create_sqlite_database      update_sqlite_tables     make_sqlite_tables
+       $(RMF) grant_sqlite_privileges     drop_sqlite_tables       drop_sqlite_database
+
+       $(RMF) mysql sqlite
        $(RMF) make_catalog_backup delete_catalog_backup
 
 distclean: realclean
@@ -71,23 +88,39 @@ distclean: realclean
 
 install:
        $(INSTALL_SCRIPT) create_@DB_NAME@_database $(DESTDIR)$(scriptdir)/create_@DB_NAME@_database
-       $(INSTALL_SCRIPT) drop_@DB_NAME@_tables $(DESTDIR)$(scriptdir)/drop_@DB_NAME@_tables
+       $(INSTALL_SCRIPT) update_@DB_NAME@_tables $(DESTDIR)$(scriptdir)/update_@DB_NAME@_tables
        $(INSTALL_SCRIPT) make_@DB_NAME@_tables $(DESTDIR)$(scriptdir)/make_@DB_NAME@_tables
-       $(INSTALL_SCRIPT) drop_bacula_tables $(DESTDIR)$(scriptdir)/drop_bacula_tables
+       $(INSTALL_SCRIPT) grant_@DB_NAME@_privileges $(DESTDIR)$(scriptdir)/grant_@DB_NAME@_privileges
+       $(INSTALL_SCRIPT) drop_@DB_NAME@_tables $(DESTDIR)$(scriptdir)/drop_@DB_NAME@_tables
+       $(INSTALL_SCRIPT) drop_@DB_NAME@_database $(DESTDIR)$(scriptdir)/drop_@DB_NAME@_database
+
+       $(INSTALL_SCRIPT) create_bacula_database $(DESTDIR)$(scriptdir)/create_bacula_database
+       $(INSTALL_SCRIPT) update_bacula_tables $(DESTDIR)$(scriptdir)/update_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
+
        $(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) update_@DB_NAME@_tables)
        (cd $(DESTDIR)$(scriptdir); $(RMF) make_@DB_NAME@_tables)
-       (cd $(DESTDIR)$(scriptdir); $(RMF) drop_bacula_tables)
+       (cd $(DESTDIR)$(scriptdir); $(RMF) grant_@DB_NAME@_privileges)
+       (cd $(DESTDIR)$(scriptdir); $(RMF) drop_@DB_NAME@_tables)
+       (cd $(DESTDIR)$(scriptdir); $(RMF) drop_@DB_NAME@_database)
+
+       (cd $(DESTDIR)$(scriptdir); $(RMF) create_bacula_database)
+       (cd $(DESTDIR)$(scriptdir); $(RMF) update_bacula_tables)
        (cd $(DESTDIR)$(scriptdir); $(RMF) make_bacula_tables)
+       (cd $(DESTDIR)$(scriptdir); $(RMF) grant_bacula_privileges)
+       (cd $(DESTDIR)$(scriptdir); $(RMF) drop_bacula_tables)
+       (cd $(DESTDIR)$(scriptdir); $(RMF) drop_bacula_database)
+
        (cd $(DESTDIR)$(scriptdir); $(RMF) make_catalog_backup)
        (cd $(DESTDIR)$(scriptdir); $(RMF) delete_catalog_backup)
-       (cd $(DESTDIR)$(scriptdir); $(RMF) grant_mysql_privileges)
 
 
 # Semi-automatic generation of dependencies: