1 | ###########################################################################
|
---|
2 | #
|
---|
3 | # Makefile -- gsdl
|
---|
4 | # A component of the Greenstone digital library software
|
---|
5 | # from the New Zealand Digital Library Project at the
|
---|
6 | # University of Waikato, New Zealand.
|
---|
7 | #
|
---|
8 | # Copyright (C) 1999 The New Zealand Digital Library Project
|
---|
9 | #
|
---|
10 | #
|
---|
11 | # This program is free software; you can redistribute it and/or modify
|
---|
12 | # it under the terms of the GNU General Public License as published by
|
---|
13 | # the Free Software Foundation; either version 2 of the License, or
|
---|
14 | # (at your option) any later version.
|
---|
15 | #
|
---|
16 | # This program is distributed in the hope that it will be useful,
|
---|
17 | # but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
18 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
19 | # GNU General Public License for more details.
|
---|
20 | #
|
---|
21 | # You should have received a copy of the GNU General Public License
|
---|
22 | # along with this program; if not, write to the Free Software
|
---|
23 | # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
---|
24 | #
|
---|
25 | ###########################################################################
|
---|
26 |
|
---|
27 | PACKAGE = @PACKAGE@
|
---|
28 | VERSION = @VERSION@
|
---|
29 |
|
---|
30 | @SET_MAKE@
|
---|
31 | CC = @CC@
|
---|
32 | CPP = @CXX@
|
---|
33 | CFLAGS = @CFLAGS@
|
---|
34 | LIBS = @LIBS@
|
---|
35 | MDEFINES =
|
---|
36 | TOPSRC = `pwd`
|
---|
37 |
|
---|
38 | COMPILE = $(CC) -c
|
---|
39 |
|
---|
40 | SOURCES =
|
---|
41 |
|
---|
42 | OBJECTS =
|
---|
43 |
|
---|
44 | ALLFILES = $(OBJECTS)
|
---|
45 |
|
---|
46 | INSTALLDIRS = src/txt2db src/db2txt src/hashfile
|
---|
47 |
|
---|
48 | OTHERDIRS = lib src/colservr src/recpt collect/cstr/src/recpt collect/niupepa/src/recpt
|
---|
49 |
|
---|
50 | all:
|
---|
51 | sed s^XXXX^$(TOPSRC)^ lib/gsdlhome.h.example > lib/gsdlhome.h
|
---|
52 |
|
---|
53 | for odir in $(OTHERDIRS); do \
|
---|
54 | echo making $@ in $$odir; \
|
---|
55 | (cd $$odir && $(MAKE) $(MDEFINES) $@) || exit 1; \
|
---|
56 | done
|
---|
57 |
|
---|
58 | for idir in $(INSTALLDIRS); do \
|
---|
59 | echo making $@ in $$idir; \
|
---|
60 | (cd $$idir && $(MAKE) $(MDEFINES) $@) || exit 1; \
|
---|
61 | echo installing $$idir; \
|
---|
62 | (cd $$idir && $(MAKE) install) || exit 1; \
|
---|
63 | done
|
---|
64 |
|
---|
65 | clean:
|
---|
66 | rm lib/gsdlhome.h
|
---|
67 | for subdir in $(INSTALLDIRS) $(OTHERDIRS); do \
|
---|
68 | echo cleaning $@ in $$subdir; \
|
---|
69 | (cd $$subdir && $(MAKE) clean) || exit 1; \
|
---|
70 | done
|
---|
71 |
|
---|
72 |
|
---|
73 |
|
---|