source: trunk/gsdl/packages/Makefile.in@ 12493

Last change on this file since 12493 was 12493, checked in by kjdon, 18 years ago

d2m under the control of USE_Z3950, but yaz compilation now under the control of USE_YAZ

  • Property svn:keywords set to Author Date Id Revision
File size: 3.0 KB
Line 
1###########################################################################
2#
3# Makefile -- Makefile for packages included with 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) 2000 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# PACKAGEDIRS 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.
31USE_Z3950=@USE_Z3950@
32USE_YAZ=@USE_YAZ@
33ifeq ($(USE_Z3950), 1)
34# make sure USE_YAZ is set
35USE_YAZ=1
36D2M=d2m
37else
38D2M=
39endif
40
41ifeq ($(USE_YAZ), 1)
42# we only compile the src and client dirs for now.
43YAZ=yaz/yaz-2.1.4/src yaz/yaz-2.1.4/client
44else
45YAZ=
46endif
47
48USE_CORBA=@USE_CORBA@
49MICO_DIR=@MICO_DIR@
50ifeq ($(USE_CORBA), 1)
51ifeq ($(MICO_DIR), default)
52CORBA="mico/mico"
53else
54CORBA=
55endif
56else
57CORBA=
58endif
59
60PACKAGEDIRS = wv/wv-gs rtftohtml/rtftohtml_src pdftohtml/pdftohtml_gs \
61 wget/wget-1.9 expat/ cpan/XML-Parser-2.34 \
62 $(YAZ) $(D2M) $(CORBA) \
63 xlhtml/xlhtml-0.4.9.0 isis-gdl \
64 cgicc/
65
66all:
67 for odir in $(PACKAGEDIRS); do \
68 echo making $@ in $$odir; \
69 (cd $$odir && $(MAKE) $(MDEFINES) $@) || exit 1; \
70 done
71ifeq ($(CORBA), "mico/mico")
72 cd mico/mico; $(MAKE) $(MDEFINES) install
73 mkdir -p ../bin/linux
74 mkdir -p ../lib
75 mkdir -p ../include
76 mkdir -p ../man
77 cp -f mico/bin/* ../bin/linux
78 cp -f mico/lib/* ../lib/
79 cp -fr mico/include/* ../include
80 cp -fr mico/man ../man
81endif
82ifeq ($(USE_YAZ), 1)
83# need to do make install in include and src dirs to get the header files and
84# lib file into the right place
85 cd yaz/yaz-2.1.4/include; $(MAKE) $(MDEFINES) install
86 cd yaz/yaz-2.1.4/src; $(MAKE) $(MDEFINES) install
87endif
88
89
90install:
91 for idir in $(PACKAGEDIRS); do \
92 echo installing $$idir; \
93 (cd $$idir && $(MAKE) install) || exit 1; \
94 done
95
96clean:
97 for subdir in $(PACKAGEDIRS); do \
98 echo cleaning $@ in $$subdir; \
99 (cd $$subdir && $(MAKE) clean || exit 0) ; \
100 done
101
102distclean:
103 for subdir in $(PACKAGEDIRS); do \
104 echo cleaning $@ in $$subdir; \
105 (cd $$subdir && $(MAKE) distclean || exit 0) ; \
106 done
Note: See TracBrowser for help on using the repository browser.