root/gsdl/trunk/common-src/win32.mak @ 16891

Revision 16891, 3.3 KB (checked in by mdewsnip, 12 years ago)

Minor change so it doesn't look like an error has occurred compiling LuceneWrapper?.jar.

Line 
1###########################################################################
2#
3# win32 makefile -- common code between gsdl runtime and buildtime
4# A component of the Greenstone digital library software
5# from the New Zealand Digital Library Project at the
6# University of Waikato, New Zealand.
7#
8# Copyright (C) 1999  The New Zealand Digital Library Project
9#
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
27GSDLHOME = $(GSDLHOME)
28COMMONHOME = $(MAKEDIR)
29GSDL_VC4 = 0
30DLL = 0
31DLLDEBUG = 0
32USE_SQLITE = 0
33
34MDEFINES = /f win32.mak
35
36INDEXERSDIR = indexers
37
38COMPILEDIRS = packages\windows\gdbm\gdbm packages\windows\crypt\crypt \
39          packages\windows\expat\expat src\lib
40
41INSTALLDIRS = src\gdbmedit\db2txt src\gdbmedit\txt2db
42
43PACKAGEDIRS =
44
45SQLITE_DIR = packages\sqlite\sqlite-amalgamation-3.5.9
46
47MAKECMD = $(MAKE) $(MDEFINES) GSDLHOME="$(GSDLHOME)"
48
49!IF $(GSDL_VC4)
50MAKECMD = $(MAKECMD) GSDL_VC4=1
51!ENDIF
52!IF $(DLL)
53MAKECMD = $(MAKECMD) DLL=1
54!ENDIF
55!IF $(DLLDEBUG)
56MAKECMD = $(MAKECMD) DLLDEBUG=1
57!ENDIF
58!IF $(USE_SQLITE)
59MAKECMD = $(MAKECMD) USE_SQLITE=1
60PACKAGEDIRS = $(PACKAGEDIRS) $(SQLITE_DIR)
61!ENDIF
62
63MAKECLEANCMD = $(MAKE) $(MDEFINES) clean
64
65all: win32.mak $(INDEXERSDIR) $(PACKAGEDIRS) $(COMPILEDIRS) $(INSTALLDIRS)
66
67install: win32.mak $(INDEXERSDIR) $(INSTALLDIRS)
68
69clean:
70    cd "$(COMMONHOME)"
71    cd packages\windows\crypt\crypt
72    $(MAKECLEANCMD)
73    cd "$(COMMONHOME)"
74    cd packages\windows\gdbm\gdbm
75    $(MAKECLEANCMD)
76    cd "$(COMMONHOME)"
77    cd packages\windows\expat\expat
78    $(MAKECLEANCMD)
79    cd "$(COMMONHOME)"
80    cd src\lib
81    $(MAKECLEANCMD)
82    cd "$(COMMONHOME)"
83    cd src\gdbmedit\txt2db
84    $(MAKECLEANCMD)
85    cd "$(COMMONHOME)"
86    cd src\gdbmedit\db2txt
87    $(MAKECLEANCMD)
88    cd "$(COMMONHOME)"
89    cd indexers
90    call winMake.bat clean
91    cd "$(COMMONHOME)"
92
93$(COMPILEDIRS): FORCE
94    cd "$(COMMONHOME)"
95    cd "$@"
96    $(MAKECMD)
97    cd "$(GSDLHOME)"
98
99$(INSTALLDIRS): FORCE
100    cd "$(COMMONHOME)"
101    cd "$@"
102    $(MAKECMD)
103    $(MAKECMD) install
104    cd "$(COMMONHOME)"
105
106$(SQLITE_DIR): FORCE
107    cd "$(COMMONHOME)"
108    cd "$@"
109    $(MAKECMD)
110    $(MAKECMD) install
111    cd "$(COMMONHOME)"
112
113$(INDEXERSDIR): FORCE
114    cd "$(COMMONHOME)"
115    cd "$@"
116    call winMake.bat all gs2
117    call winMake.bat install gs2
118    if NOT EXIST "$(GSDLHOME)\bin\windows" mkdir "$(GSDLHOME)\bin\windows"
119    if NOT EXIST "$(GSDLHOME)\bin\java" mkdir "$(GSDLHOME)\bin\java"
120    for %%i in (bin\*.exe) do \
121      copy %%i "$(GSDLHOME)\bin\windows"
122    if EXIST "lucene-gs\LuceneWrapper.jar" copy "lucene-gs\LuceneWrapper.jar" "$(GSDLHOME)\bin\java"
123    @if NOT EXIST "lucene-gs\LuceneWrapper.jar" echo Warning: Failed to find lucene-gs\LuceneWrapper.jar.  Greenstone will not be able to use Lucene for indexing
124    cd "$(GSDLHOME)"
125
126FORCE:
127
Note: See TracBrowser for help on using the browser.