cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# $Id$
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync## @file
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# VirtualBox Validation Kit - Makefile for generating .html from .txt.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync#
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync#
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# Copyright (C) 2006-2014 Oracle Corporation
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync#
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# This file is part of VirtualBox Open Source Edition (OSE), as
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# available from http://www.virtualbox.org. This file is free software;
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# you can redistribute it and/or modify it under the terms of the GNU
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# General Public License (GPL) as published by the Free Software
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# Foundation, in version 2 as it comes in the "COPYING" file of the
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync#
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# The contents of this file may alternatively be used under the terms
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# of the Common Development and Distribution License Version 1.0
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# (CDDL) only, as it comes in the "COPYING.CDDL" file of the
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# VirtualBox OSE distribution, in which case the provisions of the
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# CDDL are applicable instead of those of the GPL.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync#
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# You may elect to license modified versions of this file under the
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# terms and conditions of either the GPL or the CDDL or both.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync#
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncGENERATED_FILES = TestManagerDatabaseComments.pgsql
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncPSQL := $(firstword $(which $(foreach pgver, 92 91 90,psql$(pgver)) ) psql)
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncPSQL_OPTS = -U postgres
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncall: $(GENERATED_FILES)
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncclean:
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync kmk_builtin_rm -f -- $(GENERATED_FILES)
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncTestManagerDatabaseComments.pgsql: TestManagerDatabaseInit.pgsql gen-sql-comments.py
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync LC_ALL=C python gen-sql-comments.py $< > $@
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncload-testmanager-db: \
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync TestManagerDatabaseInit.pgsql \
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync TestManagerDatabaseComments.pgsql \
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync ../core/useraccount.pgsql \
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync ../core/testcase.pgsql \
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync ../core/globalresource.pgsql
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync @kmk_builtin_echo "Creating testmanager database: For script verification only!"
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync $(PSQL) $(PSQL_OPTS) -f TestManagerDatabaseInit.pgsql
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync $(PSQL) $(PSQL_OPTS) -d testmanager -f TestManagerDatabaseComments.pgsql
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync $(PSQL) $(PSQL_OPTS) -d testmanager -f ../core/useraccount.pgsql
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync $(PSQL) $(PSQL_OPTS) -d testmanager -f ../core/testcase.pgsql
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync $(PSQL) $(PSQL_OPTS) -d testmanager -f ../core/globalresource.pgsql
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync $(PSQL) $(PSQL_OPTS) -d testmanager -f TestManagerDatabaseDefaultUserAccounts.pgsql
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncreload-testmanager-db-dunctions: \
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync ../core/useraccount.pgsql \
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync ../core/testcase.pgsql \
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync ../core/globalresource.pgsql
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync @kmk_builtin_echo "Reloading testmanager database functions"
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync $(PSQL) $(PSQL_OPTS) -d testmanager -f ../core/useraccount.pgsql
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync $(PSQL) $(PSQL_OPTS) -d testmanager -f ../core/testcase.pgsql
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync $(PSQL) $(PSQL_OPTS) -d testmanager -f ../core/globalresource.pgsql
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# Only for prettier graphs:
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# $(PSQL) $(PSQL_OPTS) -d testmanager -f TestManagerDatabaseForeignKeyErHacks.pgsql
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync