Makefiles:
        $(SHELL) config.status
        (cd scripts; \
-          chmod 755 startmysql stopmysql bacula fd startit stopit btraceback; \
-          chmod 755 mtx-changer bconsole gconsole)
-       chmod 755 src/cats/make_mysql_tables src/cats/drop_mysql_tables
-       chmod 755 src/cats/make_postgresql_tables src/cats/drop_postgresql_tables
-       chmod 755 src/cats/make_sqlite_tables src/cats/drop_sqlite_tables
-       chmod 755 src/cats/make_bdb_tables src/cats/drop_bdb_tables
-       chmod 755 src/cats/make_test_tables src/cats/drop_test_tables
-       chmod 755 src/cats/create_mysql_database
-       chmod 755 src/cats/create_postgresql_database
-       chmod 755 src/cats/create_bacula_database
+       chmod 755 startmysql stopmysql bacula fd startit stopit btraceback; \
+       chmod 755 mtx-changer bconsole gconsole)
+
+       chmod 755 create_bacula_database      update_bacula_tables     make_bacula_tables
+       chmod 755 grant_bacula_privileges     drop_bacula_tables       drop_bacula_database
+
+       chmod 755 create_@DB_NAME@_database   update_@DB_NAME@_tables  make_@DB_NAME@_tables
+       chmod 755 grant_@DB_NAME@_privileges  drop_@DB_NAME@_tables    drop_@DB_NAME@_database
+
        chmod 755 src/cats/make_catalog_backup src/cats/delete_catalog_backup
-       chmod 755 src/cats/update_mysql_tables
-       chmod 755 src/cats/create_sqlite_database
-       chmod 755 src/cats/update_sqlite_tables
-       chomd 755 src/cats/update_bacula_tables
-       chmod 755 src/cats/create_bdb_database
-       chmod 755 src/cats/grant_mysql_privileges
-       chmod 755 src/cats/grant_sqlite_privileges
-       chmod 755 src/cats/grant_postgresql_privileges
-       chmod 755 src/cats/grant_bacula_privileges
 
 clean:
        @for I in ${all_subdirs}; \