Show
Ignore:
Timestamp:
07.01.2010 14:23:27 (10 years ago)
Author:
ak19
Message:

Better way of setting the ENABLE_indexer and USE_SQLITE and ENABLE_JNI variables in the windows makefiles.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/win32.mak

    r21379 r21435  
    3838USE_MSSQL = 0 
    3939USE_Z3950 = 0 
    40  
    4140# by default, all indexers are enabled 
    4241ENABLE_MG = 1 
     
    7574MAKECMD = $(MAKECMD) DLLDEBUG=1 
    7675!ENDIF 
    77 !IF "$(USE_SQLITE)" == "" 
    78 MAKECMD = $(MAKECMD) USE_SQLITE=1 
    79 !ELSE 
    80 MAKECMD = $(MAKECMD) USE_SQLITE=$(USE_SQLITE) 
     76!IF !$(USE_SQLITE) 
     77MAKECMD = $(MAKECMD) USE_SQLITE=0 
    8178!ENDIF 
    8279!IF $(USE_MSSQL) 
     
    8683MAKECMD = $(MAKECMD) USE_Z3950=1 
    8784!ENDIF 
    88 !IF "$(ENABLE_JNI)" == "" 
    89 MAKECMD = $(MAKECMD) ENABLE_JNI=0 
    90 !ELSE 
    91 MAKECMD = $(MAKECMD) ENABLE_JNI=$(ENABLE_JNI) 
     85!IF $(ENABLE_JNI) 
     86MAKECMD = $(MAKECMD) ENABLE_JNI=1 
    9287!ENDIF 
    93 !IF "$(ENABLE_MG)" == "" 
    94 MAKECMD = $(MAKECMD) ENABLE_MG=1 
    95 !ELSE 
    96 MAKECMD = $(MAKECMD) ENABLE_MG=$(ENABLE_MG) 
     88!IF !$(ENABLE_MG) 
     89MAKECMD = $(MAKECMD) ENABLE_MG=0 
    9790!ENDIF 
    98 !IF "$(ENABLE_MGPP)" == "" 
    99 MAKECMD = $(MAKECMD) ENABLE_MGPP=1 
    100 !ELSE 
    101 MAKECMD = $(MAKECMD) ENABLE_MGPP=$(ENABLE_MGPP) 
     91!IF !$(ENABLE_MGPP) 
     92MAKECMD = $(MAKECMD) ENABLE_MGPP=0 
    10293!ENDIF 
    103 !IF "$(ENABLE_LUCENE)" == "" 
    104 MAKECMD = $(MAKECMD) ENABLE_LUCENE=1 
    105 !ELSE 
    106 MAKECMD = $(MAKECMD) ENABLE_LUCENE=$(ENABLE_LUCENE) 
     94!IF !$(ENABLE_LUCENE) 
     95MAKECMD = $(MAKECMD) ENABLE_LUCENE=0 
    10796!ENDIF 
    10897