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

Last change on this file since 23356 was 23356, checked in by sjm84, 13 years ago

Updated several configure scripts and Makefiles to make use of the JAVA, JAVAC and JAVACFLAGS environment variables, also added a --disable-java option to several of the configure scripts

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