[16575] | 1 | ###########################################################################
|
---|
| 2 | #
|
---|
| 3 | # win32 makefile -- gsdl
|
---|
| 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 |
|
---|
| 27 | GSDLHOME = $(GSDLHOME)
|
---|
| 28 | BUILDHOME = $(MAKEDIR)
|
---|
| 29 |
|
---|
| 30 | GSDL_VC4 = 0
|
---|
[19520] | 31 | DEBUG = 0
|
---|
[16575] | 32 | DLL = 0
|
---|
| 33 | DLLDEBUG = 0
|
---|
| 34 |
|
---|
[22140] | 35 | # tar file is "$(XLHTML_DIR)-gs.tar.gz
|
---|
[22154] | 36 | XLHTML_DIR = packages\xlhtml\xlhtml-0.4.9.0
|
---|
[22140] | 37 |
|
---|
[16575] | 38 | MDEFINES = /f win32.mak
|
---|
| 39 |
|
---|
[20873] | 40 | INSTALLDIRS = src\hashfile src\phind\generate
|
---|
| 41 | JAVADIR = src\java\org\nzdl\gsdl
|
---|
[16575] | 42 |
|
---|
| 43 | MAKECMD = $(MAKE) $(MDEFINES) GSDLHOME="$(GSDLHOME)"
|
---|
| 44 |
|
---|
| 45 | !IF $(GSDL_VC4)
|
---|
| 46 | MAKECMD = $(MAKECMD) GSDL_VC4=1
|
---|
| 47 | !ENDIF
|
---|
[19520] | 48 | !IF $(DEBUG)
|
---|
| 49 | MAKECMD = $(MAKECMD) DEBUG=1
|
---|
| 50 | !ENDIF
|
---|
[16575] | 51 | !IF $(DLL)
|
---|
| 52 | MAKECMD = $(MAKECMD) DLL=1
|
---|
| 53 | !ENDIF
|
---|
| 54 | !IF $(DLLDEBUG)
|
---|
| 55 | MAKECMD = $(MAKECMD) DLLDEBUG=1
|
---|
| 56 | !ENDIF
|
---|
| 57 |
|
---|
[18176] | 58 | MAKECLEANCMD = $(MAKE) $(MDEFINES) GSDLHOME="$(GSDLHOME)" clean
|
---|
[16575] | 59 |
|
---|
[22140] | 60 | all: win32.mak xlppt $(INSTALLDIRS) $(JAVADIR)
|
---|
[16575] | 61 |
|
---|
[22140] | 62 | install: win32.mak xlppt $(INSTALLDIRS)
|
---|
[16575] | 63 |
|
---|
[22140] | 64 | # Independent target for compiling xlhtml and ppthtml
|
---|
| 65 | xlppt:
|
---|
| 66 | IF NOT EXIST $(XLHTML_DIR) IF EXIST "$(GSDLHOME)\bin\windows\gunzip.exe" IF EXIST "$(GSDLHOME)\bin\windows\tar.exe" "$(GSDLHOME)\bin\windows\gunzip.exe" -cd "$(XLHTML_DIR)-gs.tar.gz" | "$(GSDLHOME)\bin\windows\tar.exe" xv --directory=./packages/xlhtml
|
---|
| 67 | @IF NOT EXIST $(XLHTML_DIR) echo ****** Couldn't extract archive $(XLHTML_DIR).tar.gz. Extract it manually, or check that gunzip.exe and tar.exe exist in GSDLHOME\bin\windows. ******
|
---|
| 68 | @IF NOT EXIST $(XLHTML_DIR) exit /b 1
|
---|
| 69 | cd "$(XLHTML_DIR)"
|
---|
| 70 | $(MAKECMD)
|
---|
| 71 | $(MAKECMD) install
|
---|
| 72 | cd "$(BUILDHOME)"
|
---|
| 73 |
|
---|
[16575] | 74 | clean:
|
---|
[16577] | 75 | cd "$(BUILDHOME)"
|
---|
[16575] | 76 | cd src\phind\generate
|
---|
| 77 | $(MAKECLEANCMD)
|
---|
[16577] | 78 | cd "$(BUILDHOME)"
|
---|
[16575] | 79 | cd src\hashfile
|
---|
| 80 | $(MAKECLEANCMD)
|
---|
[20873] | 81 | cd "$(BUILDHOME)"
|
---|
[22140] | 82 | cd "$(XLHTML_DIR)"
|
---|
| 83 | $(MAKECLEANCMD)
|
---|
| 84 | cd "$(BUILDHOME)
|
---|
[20873] | 85 | cd src\java\org\nzdl\gsdl
|
---|
| 86 | call winMake.bat clean
|
---|
[16575] | 87 | cd "$(GSDLHOME)"
|
---|
| 88 |
|
---|
| 89 | $(INSTALLDIRS): FORCE
|
---|
[16577] | 90 | cd "$(BUILDHOME)"
|
---|
[16575] | 91 | cd "$@"
|
---|
| 92 | $(MAKECMD)
|
---|
| 93 | $(MAKECMD) install
|
---|
| 94 | cd "$(GSDLHOME)"
|
---|
| 95 |
|
---|
[20873] | 96 | $(JAVADIR): FORCE
|
---|
| 97 | cd "$(BUILDHOME)"
|
---|
| 98 | cd "$@"
|
---|
| 99 | call winMake.bat all
|
---|
| 100 | if NOT EXIST "$(GSDLHOME)\bin\java" mkdir "$(GSDLHOME)\bin\java"
|
---|
[20878] | 101 | if EXIST "$(BUILDHOME)\$(JAVADIR)\ApplyXSLT.jar" copy "$(BUILDHOME)\$(JAVADIR)\ApplyXSLT.jar" "$(GSDLHOME)\bin\java"
|
---|
| 102 | if NOT EXIST "$(BUILDHOME)\$(JAVADIR)\ApplyXSLT.jar" echo Warning: Failed to find $(BUILDHOME)\$(JAVADIR)\ApplyXSLT.jar. Greenstone will not be able to use XSLT files during building
|
---|
[20873] | 103 |
|
---|
| 104 |
|
---|
| 105 |
|
---|
[16575] | 106 | FORCE:
|
---|
| 107 |
|
---|