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

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

New configuration and compilation flag ENABLE_JNI added which will be disabled by default for GS2 since in general GS doesn't need mg and mgpp compiled up with jni. GS3

  • 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
60INDEXERDIRS = $(UNAC) $(MG) $(MGPP) $(LUCENE)
61
62
63clean:
64 for odir in $(INDEXERDIRS); do \
65 if test -d $$odir; then \
66 echo making $@ in $$odir; \
67 (cd $$odir && $(MAKE) $(MDEFINES) $@) || exit 1; \
68 fi; \
69 done
70
71with-jni:
72 for odir in $(INDEXERDIRS); do \
73 if test -d $$odir; then \
74 echo making all in $$odir; \
75 (cd $$odir && $(MAKE) $(MDEFINES) all) || exit 1; \
76 fi; \
77 done
78
79install-with-jni:
80 for odir in $(INDEXERDIRS); do \
81 if test -d $$odir; then \
82 echo making install in $$odir; \
83 (cd $$odir && $(MAKE) $(MDEFINES) install) || exit 1; \
84 fi; \
85 done
86
87# make everything except jni stuff
88without-jni:
89 for odir in $(UNAC) $(LUCENE); do \
90 echo making $@ in $$odir; \
91 (cd $$odir && $(MAKE) $(MDEFINES) all) || exit 1; \
92 done
93 for odir in $(MG) $(MGPP); do \
94 echo making $@ in $$odir; \
95 (cd $$odir && $(MAKE) $(MDEFINES) nojava) || exit 1; \
96 done
97
98install-without-jni:
99 for odir in $(UNAC) $(LUCENE); do \
100 echo making $@ in $$odir; \
101 (cd $$odir && $(MAKE) $(MDEFINES) install) || exit 1; \
102 done
103 for odir in $(MG) $(MGPP); do \
104 echo making $@ in $$odir; \
105 (cd $$odir && $(MAKE) $(MDEFINES) install-nojava) || exit 1; \
106 done
107
108nojava:
109 for odir in $(UNAC); do \
110 echo making $@ in $$odir; \
111 (cd $$odir && $(MAKE) $(MDEFINES) all) || exit 1; \
112 done
113 for odir in $(MG) $(MGPP); do \
114 echo making $@ in $$odir; \
115 (cd $$odir && $(MAKE) $(MDEFINES) $@) || exit 1; \
116 done
117
118install-nojava:
119 for odir in $(UNAC); do \
120 echo making $@ in $$odir; \
121 (cd $$odir && $(MAKE) $(MDEFINES) install) || exit 1; \
122 done
123 for odir in $(MG) $(MGPP); do \
124 echo making $@ in $$odir; \
125 (cd $$odir && $(MAKE) $(MDEFINES) $@) || exit 1; \
126 done
127
128javaonly:
129 for odir in $(MG) $(MGPP); do \
130 echo making $@ in $$odir; \
131 (cd $$odir && $(MAKE) $(MDEFINES) $@) || exit 1; \
132 done
133 for odir in $(LUCENE); do \
134 echo making $@ in $$odir; \
135 (cd $$odir && $(MAKE) $(MDEFINES) all) || exit 1; \
136 done
137
138install-javaonly:
139 for odir in $(MG) $(MGPP); do \
140 echo making $@ in $$odir; \
141 (cd $$odir && $(MAKE) $(MDEFINES) $@) || exit 1; \
142 done
143 for odir in $(LUCENE); do \
144 echo making $@ in $$odir; \
145 (cd $$odir && $(MAKE) $(MDEFINES) install) || exit 1; \
146 done
147
148distclean:
149 for odir in $(INDEXERDIRS); do \
150 if test -d $$odir; then \
151 echo making $@ in $$odir; \
152 (cd $$odir && $(MAKE) $(MDEFINES) $@) || exit 1; \
153 fi; \
154 done
155 rm -f Makefile config.status config.log
Note: See TracBrowser for help on using the repository browser.