/ conversion / access /
/conversion/access/Makefile
1 # Copyright (C) 2013 The Meme Factory, Inc. http://www.meme.com>/
2 #
3 # This file is part of GombeMI.
4 #
5 # GombeMI is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 3 of the License, or
8 # (at your option) any later version.
9 #
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
14 #
15 # You should have received a copy of the GNU General Public License
16 # along with GombeMI. If not, see <http://www.gnu.org/licenses/>.
17 #
18 # Makefile for conversion from acess.
19 #
20 # Karl O. Pinc <kop@meme.com>
21
22 DBPATH := ../../db
23
24 # Have make look for files in the include directory
25 VPATH = $(DBPATH)/include:$(DBPATH)
26
27 # Defaults for variable values
28 # Have a look as you'll probably want to set some of them.
29 include $(DBPATH)/defaults.mk
30
31 # The stuff in the include directory (pass to sub-makes too)
32 export INCLUDES = constants.m4 copyright.m4 types.m4 globalmacros.m4
33
34 TARGETS = makeschema prepared_data
35
36 all: $(INCLUDES) $(TARGETS)
37
38 .PHONY: vacuum_sys
39 vacuum_sys:
40 [ -x vacuum_sys ] || chmod a+x vacuum_sys
41
42 makeschema: include/grants.m4 include/copyright.m4 include/constants.m4 \
43 Makefile makeschema.m4
44 m4 -I $(DBPATH)/include makeschema.m4 > makeschema
45
46 prepared_data: include/grants.m4 include/copyright.m4 \
47 include/constants.m4 Makefile prepared_data.m4
48 m4 -I $(DBPATH)/include prepared_data.m4 > prepared_data
49
50 .PHONY: clean
51 clean:
52 rm -rf $(TARGETS)