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

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

Changes to makefiles, configure files, and source code to work with the new configure flags that allow indexers to be individually compiled up by setting each indexer to be enabled or disabled (enable-mg, enable-mgpp, enable-lucene).

  • Property svn:keywords set to Author Date Id Revision
File size: 3.9 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
63all install clean:
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
71nojava:
72 for odir in $(UNAC); do \
73 echo making $@ in $$odir; \
74 (cd $$odir && $(MAKE) $(MDEFINES) all) || exit 1; \
75 done
76 for odir in $(MG) $(MGPP); do \
77 echo making $@ in $$odir; \
78 (cd $$odir && $(MAKE) $(MDEFINES) $@) || exit 1; \
79 done
80
81install-nojava:
82 for odir in $(UNAC); do \
83 echo making $@ in $$odir; \
84 (cd $$odir && $(MAKE) $(MDEFINES) install) || exit 1; \
85 done
86 for odir in $(MG) $(MGPP); do \
87 echo making $@ in $$odir; \
88 (cd $$odir && $(MAKE) $(MDEFINES) $@) || exit 1; \
89 done
90
91javaonly:
92 for odir in $(MG) $(MGPP); do \
93 echo making $@ in $$odir; \
94 (cd $$odir && $(MAKE) $(MDEFINES) $@) || exit 1; \
95 done
96 for odir in $(LUCENE); do \
97 echo making $@ in $$odir; \
98 (cd $$odir && $(MAKE) $(MDEFINES) all) || exit 1; \
99 done
100
101install-javaonly:
102 for odir in $(MG) $(MGPP); do \
103 echo making $@ in $$odir; \
104 (cd $$odir && $(MAKE) $(MDEFINES) $@) || exit 1; \
105 done
106 for odir in $(LUCENE); do \
107 echo making $@ in $$odir; \
108 (cd $$odir && $(MAKE) $(MDEFINES) install) || exit 1; \
109 done
110
111# make everything except jni stuff
112gs2:
113 for odir in $(UNAC) $(LUCENE); do \
114 echo making $@ in $$odir; \
115 (cd $$odir && $(MAKE) $(MDEFINES) all) || exit 1; \
116 done
117 for odir in $(MG) $(MGPP); do \
118 echo making $@ in $$odir; \
119 (cd $$odir && $(MAKE) $(MDEFINES) nojava) || exit 1; \
120 done
121
122install-gs2:
123 for odir in $(UNAC) $(LUCENE); do \
124 echo making $@ in $$odir; \
125 (cd $$odir && $(MAKE) $(MDEFINES) install) || exit 1; \
126 done
127 for odir in $(MG) $(MGPP); do \
128 echo making $@ in $$odir; \
129 (cd $$odir && $(MAKE) $(MDEFINES) install-nojava) || exit 1; \
130 done
131
132distclean:
133 for odir in $(INDEXERDIRS); do \
134 if test -d $$odir; then \
135 echo making $@ in $$odir; \
136 (cd $$odir && $(MAKE) $(MDEFINES) $@) || exit 1; \
137 fi; \
138 done
139 rm -f Makefile config.status config.log
Note: See TracBrowser for help on using the repository browser.