source: trunk/tools/database/Makefile@ 10366

Last change on this file since 10366 was 7880, checked in by bird, 24 years ago

Link with new mysql.lib.

File size: 862 bytes
Line 
1# $Id: Makefile,v 1.21 2002-02-12 07:01:49 bird Exp $
2
3#
4# Odin32 Api Database Utilities.
5#
6#
7
8
9#
10# Common tools macros. (MAKE_CMD)
11#
12!include ../../makefile.inc
13
14
15#
16# dummy all rule - invoking nmake withtout target caused it to do all of the targets below..
17#
18_all: all
19
20
21#
22# All the common rules like all, lib, clean and dep.
23#
24$(COMMONRULES):
25 @$(DODIRS) "mysql" $(MAKE_CMD) $@
26 @$(DOMAKES) "APIImport.mak StateUpd.mak" $(MAKE_CMD) $@
27
28
29#
30# Odin32 - Creates the database. This will do a drop of any database named "Odin32"!
31#
32Odin32: CreateTables.sql States.sql Authors.sql
33 -mysqladmin refresh
34 mysqladmin DROP Odin32
35 mysql < CreateTables.sql
36 mysql < States.sql
37 mysql < Authors.sql
38 -mysqladmin refresh
39
40Authors: Authors.sql
41 mysql < Authors.sql
42 -mysqladmin refresh
43
44States: States.sql
45 mysql < States.sql
46 -mysqladmin refresh
47
Note: See TracBrowser for help on using the repository browser.