source: main/trunk/greenstone2/common-src/indexers/Makefile.in@ 22779

Last change on this file since 22779 was 22070, checked in by ak19, 14 years ago

Undoing the commits of 22058 to the indexer folder: USE_GDBM, USE_JDBM are not relevant here (or USE_SQLITE).

  • Property svn:keywords set to Author Date Id Revision
File size: 4.3 KB
Line 
1###########################################################################
2#
3# Makefile -- Makefile for indexers used by Greenstone
4#
5# A component of the Greenstone digital library software
6# from the New Zealand Digital Library Project at the
7# University of Waikato, New Zealand.
8#
9# Copyright (C) 2007 New Zealand Digital Library Project
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
28# INDEXERDIRS contains the packages that we want to make and install. It
29# is assumed that each package will have at least four rules: all, install,
30# clean, and distclean.
31
32ENABLE_ACCENTFOLD=@ENABLE_ACCENTFOLD@
33ifeq ($(ENABLE_ACCENTFOLD), 1)
34UNAC=packages/unac
35else
36UNAC=
37endif
38
39ENABLE_MG=@ENABLE_MG@
40ifeq ($(ENABLE_MG), 1)
41MG=mg
42else
43MG=
44endif
45
46ENABLE_MGPP=@ENABLE_MGPP@
47ifeq ($(ENABLE_MGPP), 1)
48MGPP=mgpp
49else
50MGPP=
51endif
52
53ENABLE_LUCENE=@ENABLE_LUCENE@
54ifeq ($(ENABLE_LUCENE), 1)
55LUCENE=lucene-gs
56else
57LUCENE=
58endif
59
60
61INDEXERDIRS = $(UNAC) $(MG) $(MGPP) $(LUCENE)
62
63
64clean:
65 for odir in $(INDEXERDIRS); do \
66 if test -d $$odir; then \
67 echo making $@ in $$odir; \
68 (cd $$odir && $(MAKE) $(MDEFINES) $@) || exit 1; \
69 fi; \
70 done
71
72with-jni:
73 for odir in $(INDEXERDIRS); do \
74 if test -d $$odir; then \
75 echo making all in $$odir; \
76 (cd $$odir && $(MAKE) $(MDEFINES) all) || exit 1; \
77 fi; \
78 done
79
80install-with-jni:
81 for odir in $(INDEXERDIRS); do \
82 if test -d $$odir; then \
83 echo making install in $$odir; \
84 (cd $$odir && $(MAKE) $(MDEFINES) install) || exit 1; \
85 fi; \
86 done
87
88# make everything except jni stuff
89without-jni:
90 for odir in $(UNAC) $(LUCENE); do \
91 echo making $@ in $$odir; \
92 (cd $$odir && $(MAKE) $(MDEFINES) all) || exit 1; \
93 done
94 for odir in $(MG) $(MGPP); do \
95 echo making $@ in $$odir; \
96 (cd $$odir && $(MAKE) $(MDEFINES) nojava) || exit 1; \
97 done
98
99install-without-jni:
100 for odir in $(UNAC) $(LUCENE); do \
101 echo making $@ in $$odir; \
102 (cd $$odir && $(MAKE) $(MDEFINES) install) || exit 1; \
103 done
104 for odir in $(MG) $(MGPP); do \
105 echo making $@ in $$odir; \
106 (cd $$odir && $(MAKE) $(MDEFINES) install-nojava) || exit 1; \
107 done
108
109nojava:
110 for odir in $(UNAC); do \
111 echo making $@ in $$odir; \
112 (cd $$odir && $(MAKE) $(MDEFINES) all) || exit 1; \
113 done
114 for odir in $(MG) $(MGPP); do \
115 echo making $@ in $$odir; \
116 (cd $$odir && $(MAKE) $(MDEFINES) $@) || exit 1; \
117 done
118
119install-nojava:
120 for odir in $(UNAC); do \
121 echo making $@ in $$odir; \
122 (cd $$odir && $(MAKE) $(MDEFINES) install) || exit 1; \
123 done
124 for odir in $(MG) $(MGPP); do \
125 echo making $@ in $$odir; \
126 (cd $$odir && $(MAKE) $(MDEFINES) $@) || exit 1; \
127 done
128
129javaonly:
130 for odir in $(MG) $(MGPP); do \
131 echo making $@ in $$odir; \
132 (cd $$odir && $(MAKE) $(MDEFINES) $@) || exit 1; \
133 done
134 for odir in $(LUCENE); do \
135 echo making $@ in $$odir; \
136 (cd $$odir && $(MAKE) $(MDEFINES) all) || exit 1; \
137 done
138
139install-javaonly:
140 for odir in $(MG) $(MGPP); do \
141 echo making $@ in $$odir; \
142 (cd $$odir && $(MAKE) $(MDEFINES) $@) || exit 1; \
143 done
144 for odir in $(LUCENE); do \
145 echo making $@ in $$odir; \
146 (cd $$odir && $(MAKE) $(MDEFINES) install) || exit 1; \
147 done
148
149distclean:
150 for odir in $(INDEXERDIRS); do \
151 if test -d $$odir; then \
152 echo making $@ in $$odir; \
153 (cd $$odir && $(MAKE) $(MDEFINES) $@) || exit 1; \
154 fi; \
155 done
156 rm -f Makefile config.status config.log
Note: See TracBrowser for help on using the repository browser.