mirror of https://github.com/apache/lucene.git
Removed makefiles. Ant has replaced 'make' as the primary build system.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149591 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
a2ac9a68f1
commit
6c282c6a4e
|
@ -1,3 +0,0 @@
|
|||
# sub-directory makefile for lucene
|
||||
ROOT = ../..
|
||||
include ../../com/lucene/rules.mk
|
|
@ -1,3 +0,0 @@
|
|||
# sub-directory makefile for lucene
|
||||
ROOT = ..
|
||||
include ../com/lucene/rules.mk
|
|
@ -1,9 +0,0 @@
|
|||
# top-level makefile for lucene
|
||||
|
||||
all: jar doc
|
||||
|
||||
# root is two levels up
|
||||
ROOT = ../..
|
||||
|
||||
include rules.mk
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
# sub-directory makefile for lucene
|
||||
include ../rules.mk
|
|
@ -1,7 +0,0 @@
|
|||
ROOT = ../../../..
|
||||
|
||||
include ../../rules.mk
|
||||
|
||||
# Don't delete ParseException.java -- we've changed it by hand.
|
||||
DIRT := $(patsubst ParseException.java,,${DIRT})
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
# sub-directory makefile for lucene
|
||||
include ../rules.mk
|
|
@ -1,2 +0,0 @@
|
|||
# sub-directory makefile for lucene
|
||||
include ../rules.mk
|
|
@ -1,2 +0,0 @@
|
|||
# sub-directory makefile for lucene
|
||||
include ../rules.mk
|
|
@ -1,58 +0,0 @@
|
|||
# rules to enable the running of "make jar" and the like from any dir..
|
||||
|
||||
# directories containing java source code
|
||||
DIRS = store util document analysis analysis/standard index search queryParser
|
||||
PACKAGES = $(subst /,.,$(patsubst %,com.lucene.%,$(DIRS)))
|
||||
|
||||
ifeq ($(JAVALINK),)
|
||||
JAVALINK = http://java.sun.com/products/jdk/1.3/docs/api/
|
||||
endif
|
||||
|
||||
# OLDJAVA does not have a -link option
|
||||
ifeq ($(OLDJAVA),)
|
||||
JLINK_OPT = -link $(JAVALINK)
|
||||
JAR_CMD = $(JAR) -cvfm lucene.jar com/lucene/manifest
|
||||
else
|
||||
JAR_CMD = $(JAR) -cvf lucene.jar
|
||||
endif
|
||||
|
||||
.PHONY: jar doc demo release
|
||||
|
||||
jar: all_classes
|
||||
cd $(ROOT) && $(JAR_CMD) \
|
||||
`ls com/lucene/*/*.class` `ls com/lucene/*/*/*.class`
|
||||
|
||||
doc: all_classes
|
||||
if [ -d $(ROOT)/doc/api ]; then rm -rf $(ROOT)/doc/api ;fi
|
||||
mkdir $(ROOT)/doc/api
|
||||
$(JAVADOC) -classpath '$(CLASSPATH)' -author -version \
|
||||
-d $(ROOT)/doc/api $(JLINK_OPT) $(PACKAGES)
|
||||
|
||||
demo: all_classes
|
||||
$(MAKE) -C $(ROOT)/demo/HTMLParser -w
|
||||
$(MAKE) -C $(ROOT)/demo -w CLASSPATH=..
|
||||
|
||||
release: jar demo doc
|
||||
cd $(ROOT) && tar cvf lucene.tar lucene.jar doc/*.html doc/api \
|
||||
demo/*.java demo/*.class demo/*.html demo/*.jhtml \
|
||||
demo/HTMLParser/*.class demo/HTMLParser/*.jj \
|
||||
demo/HTMLParser/*.java
|
||||
|
||||
# make all the Lucene classes
|
||||
all_classes : TARGET = classes
|
||||
all_classes : $(DIRS)
|
||||
|
||||
.PHONY: $(DIRS)
|
||||
$(DIRS):
|
||||
$(MAKE) -C $(ROOT)/com/lucene/$@ -w $(TARGET)
|
||||
|
||||
# Removes all generated files from src directories.
|
||||
src_clean: TARGET = clean
|
||||
src_clean: $(DIRS) clean
|
||||
|
||||
# Removes all generated files.
|
||||
real_clean: DIRS += demo
|
||||
real_clean: DIRS += demo/HTMLParser
|
||||
real_clean: TARGET = clean
|
||||
real_clean: $(DIRS) clean
|
||||
cd $(ROOT) && rm -rf lucene.jar lucene.tar doc/api
|
|
@ -1,128 +0,0 @@
|
|||
# GNU make rules for lucene
|
||||
|
||||
# determine whether we're on Win32 or Unix
|
||||
ifeq ($(findstring CYGWIN,$(shell uname)),CYGWIN)
|
||||
OS = win32
|
||||
else
|
||||
OS = unix
|
||||
endif
|
||||
|
||||
# DOS compatibility:
|
||||
# These should be used in variables that end up in CLASSPATH.
|
||||
ifeq ($(OS),win32)
|
||||
SLASH=\\
|
||||
COLON=;
|
||||
else
|
||||
SLASH=/
|
||||
COLON=:
|
||||
endif
|
||||
|
||||
# ROOT should be set to the root directory of the Lucene package
|
||||
# hierarchy. This is typically ../../.., as most packages are of the
|
||||
# form com.lucene.<package>.
|
||||
ifeq ($(ROOT),)
|
||||
ROOT = ..$(SLASH)..$(SLASH)..
|
||||
else
|
||||
ROOT := $(subst /,$(SLASH),$(ROOT))
|
||||
endif
|
||||
|
||||
#include all the relevant variables
|
||||
include $(subst $(SLASH),/,$(ROOT))/com/lucene/variables.mk
|
||||
|
||||
# directories containing java source code
|
||||
DIRS = store util document analysis analysis/standard index search queryParser
|
||||
PACKAGES = $(subst /,.,$(patsubst %,com.lucene.%,$(DIRS)))
|
||||
|
||||
ifeq ($(JDK_HOME),)
|
||||
ifneq ($(JAVA_HOME),)
|
||||
JDK_HOME=$(JAVA_HOME)
|
||||
else
|
||||
ifeq ($(OS),win32)
|
||||
JDK_HOME = C:/jdk1.3.1
|
||||
else
|
||||
JDK_HOME = /usr/local/java/jdk1.3.1
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
# Location of JavaCC
|
||||
ifeq ($(JAVACC),)
|
||||
ifeq ($(OS),win32)
|
||||
JAVACC = C:/javacc2_0/bin/lib/JavaCC.zip
|
||||
else
|
||||
JAVACC = /usr/local/java/javacc2_0/bin/lib/JavaCC.zip
|
||||
endif
|
||||
endif
|
||||
|
||||
JAVADIR = $(subst \,/,$(JDK_HOME))
|
||||
|
||||
# The compiler executable.
|
||||
ifeq ($(JAVAC),)
|
||||
JAVAC = $(JAVADIR)/bin/javac
|
||||
endif
|
||||
|
||||
# The java executable
|
||||
JAVA = $(JAVADIR)/bin/java
|
||||
|
||||
# The jar executable
|
||||
JAR = $(JAVADIR)/bin/jar
|
||||
|
||||
# javadoc
|
||||
JAVADOC = $(JAVADIR)/bin/javadoc
|
||||
|
||||
# Options to pass to Java compiler
|
||||
ifeq ($(JFLAGS),)
|
||||
JFLAGS = -O
|
||||
endif
|
||||
|
||||
|
||||
# CLASSPATH
|
||||
# By default include the Lucene root, and Java's builtin classes
|
||||
ifeq ($(OLDJAVA),)
|
||||
export CLASSPATH=$(PREPENDCLASSPATH)$(COLON)$(ROOT)$(COLON)$(JDK_HOME)$(SLASH)jre$(SLASH)lib$(SLASH)rt.jar
|
||||
else
|
||||
export CLASSPATH=$(PREPENDCLASSPATH)$(COLON)$(ROOT)$(COLON)$(JDK_HOME)$(SLASH)lib$(SLASH)classes.zip
|
||||
endif
|
||||
|
||||
# JIKESPATH overrides the classpath variable for jikes, so we need to set it
|
||||
# here to avoid problems with a jikes user
|
||||
export JIKESPATH=$(CLASSPATH)
|
||||
|
||||
## Rules
|
||||
|
||||
# Use JAVAC to compile .java files into .class files
|
||||
%.class : %.java
|
||||
$(JAVAC) $(JFLAGS) $<
|
||||
|
||||
# Compile .jj files to .java with JavaCC
|
||||
%.java : %.jj
|
||||
$(JAVA) -classpath '$(CLASSPATH)$(COLON)$(JAVACC)' COM.sun.labs.javacc.Main $<
|
||||
|
||||
# Add JavaCC generated files to 'classes' and 'clean' targets.
|
||||
JJFILES = $(wildcard *.jj)
|
||||
ifneq ($(JJFILES),)
|
||||
CLASSES += $(patsubst %.jj,%.class, $(JJFILES))
|
||||
DIRT += $(patsubst %.jj,%.java, $(JJFILES))
|
||||
DIRT += $(patsubst %.jj,%Constants.java, $(JJFILES))
|
||||
DIRT += $(patsubst %.jj,%TokenManager.java, $(JJFILES))
|
||||
DIRT += Token.java TokenMgrError.java TokenManager.java \
|
||||
CharStream.java ASCII_CharStream.java ParseException.java
|
||||
endif
|
||||
|
||||
|
||||
# Don't delete parser's .java file -- it's needed by javadoc.
|
||||
.PRECIOUS: $(patsubst %.jj,%.java, $(JJFILES))
|
||||
|
||||
|
||||
# Assume all .java files should have a .class file.
|
||||
CLASSES += $(patsubst %.java,%.class,$(wildcard *.java))
|
||||
|
||||
# default rule
|
||||
classes : $(CLASSES)
|
||||
|
||||
# Removes all generated files from the connected src directory.
|
||||
clean:
|
||||
rm -f *.class $(DIRT)
|
||||
|
||||
# include all the rules for the root directory..
|
||||
include $(subst $(SLASH),/,$(ROOT))/com/lucene/rootrules.mk
|
|
@ -1,2 +0,0 @@
|
|||
# sub-directory makefile for lucene
|
||||
include ../rules.mk
|
|
@ -1,2 +0,0 @@
|
|||
# sub-directory makefile for lucene
|
||||
include ../rules.mk
|
|
@ -1,2 +0,0 @@
|
|||
# sub-directory makefile for lucene
|
||||
include ../rules.mk
|
|
@ -1,30 +0,0 @@
|
|||
# User variables for make. Customize for your installation as needed.
|
||||
# Anything set here override the defaults set in rules.mk
|
||||
|
||||
# where your JDK is installed.
|
||||
# Please note: this is not the same as JAVA_HOME!
|
||||
# Default is: C:/jdk1.3 or /usr/local/java/jdk1.3 depending on OS
|
||||
# JDK_HOME=
|
||||
|
||||
# set this if you are using JDK1.1.x
|
||||
# OLDJAVA=1
|
||||
|
||||
# set this if you are using a custom java compiler (i.e. jikes)
|
||||
# Default is: $JDK_HOME/bin/javac
|
||||
# JAVAC=jikes
|
||||
|
||||
# set this to the location of the javacc zip file
|
||||
# Default is:
|
||||
# JAVACC=/usr/local/java/javacc2_0/bin/lib/JavaCC.zip
|
||||
|
||||
# Set this to the flags you want to give your java compiler
|
||||
# -O by default.
|
||||
# Use JFLAGS=-g to generate debuggable code.
|
||||
# JFLAGS= -O
|
||||
|
||||
# prepend any custom classpath here:
|
||||
# PREPENDCLASSPATH=
|
||||
|
||||
# where the default java documentation is
|
||||
# Default is:
|
||||
# JAVALINK = http://java.sun.com/products/jdk/1.3/docs/api/
|
Loading…
Reference in New Issue