You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xang-cvs@xml.apache.org by md...@locus.apache.org on 2000/03/23 00:20:10 UTC

cvs commit: xml-xang/java/src Makefile Makefile.incl

mdierken    00/03/22 15:20:10

  Added:       java/src Makefile Makefile.incl
  Log:
  Initial cut at make system
  
  Revision  Changes    Path
  1.1                  xml-xang/java/src/Makefile
  
  Index: Makefile
  ===================================================================
  include Makefile.incl
  # Makefile for directory .
  #
  # This makefile depends on the following environment variables
  # already being defined:
  #
  #   JAVAC   Java compiler (with options)
  #   RM      Host delete file command (with options)
  #
  # In addition, the CLASSPATH environment variable must
  # include the absolute path of the base source directory.
  
  TARGETS=org/apache/xang
  SUBDIRS=
  PROJECT=Xang
  
  all: compile 
  
  dirs:
  	@for i in $(SUBDIRS) ; \
  	do \
  	(echo Making ${PROJECT} in $$i; $(MAKE) -C $$i ); \
  	done
  
  # Gotta love 'find'
  compile: ${TARGETS}
  	@for i in $(TARGETS) ; \
  	do \
  	(echo Compiling $$i;find . -name "*.java" -exec ${JAVAC} $(JAVACFLAGS) {} \; ); \
  	done
  	
  	
  .SUFFIXES:
  
  .SUFFIXES: .class .java
  
  .java.class:
  	${JAVAC} $<
  
  clean:
  	${MAKE} -C org clean
  
  apidocs: ../docs/apiDocs/index.html
  ../docs/apiDocs/index.html: classfiles_updated
  
  	${JDK12BIN}/javadoc -windowtitle "${PROJECT} ${PRODUCVERSION_DOT} API" \
  		-splitindex -header "${PROJECT} ${PRODUCTVERSION_DOT}" \
  		-version  \
  		-d ../docs/apiDocs ${PACKAGES}
  
  jars: source samples
  
  source: ../bin/${JARFILE}
  ../bin/${JARFILE}: classfiles_updated
  
  #########################################
  #copy the .class files under src
  #-src/org/apache/xang/
  	${MKDIR} ../class/org/apache/xang
  	${CPR}  ../src/org/apache/xang/*.class  			../class/org/apache/xang
  
  #make the first jar file
  	echo ${PRODUCTVERSION}> ../class/${PROJECT}_Ver_${PRODUCTVERSION}.info
  	cd ../class;${JAR} ../bin/${JARFILE} *.info org; cd ../src        
  ###################################
  #copy the .class files under samples
  samples: ../bin/${SAMPLESJARFILE}
  ../bin/${SAMPLESJARFILE}: classfiles_updated
  
  #-samples/dom
  
  	${MKDIR} ../class/xang
  	${CP}  ../samples/xang/*.class  ../class/xang
  
  #Make the second jar file
  
  	cd ../class;${JAR} ../bin/${SAMPLESJARFILE} ${PROJECT}_Ver_${PRODUCTVERSION}.info dom sax ui;cd ../src
  
  # copy the license, ANT build file, Status file, and READMEs
  	${CP}  ../build.xml ../README ../Readme.html ../STATUS ../bin
  
  
  package_src:
  
  ##################################################
  #copy the .java .dtd files under src
  
  #-src/org/apache/xang
  	${MKDIR} ../source/src/org/apache/xang
  	${CPR}  ../src/org/apache/xang/*.java  			../source/src/org/apache/xang
  
  ###################################
  #copy the .xap files under samples
  
  #-samples/xap
  
  	${MKDIR} ../source/samples/xap
  	${CP}  ../samples/xap/*.xap  ../source/samples/xap
  
  #########################################
  #copy the Makefiles under src
  
  #-src/org/apache/xang
  	${CP}  ../src/org/apache/xang/Makefile  			../source/src/org/apache/xang
  
  ###
  #copy the Makefiles and the batch files at higher levels
  #-source
  	${CP}  ../Makefile    ../source
  
  #-source
  	${CP}  ../BuildAll.bat    ../source
  
  #-source
  	${CP}  ../BuildAll    ../source
  
  #-src
  	${CP}  ../src/Makefile    ../source/src
  
  #-src
  	${CP}  ../src/Makefile.incl    ../source/src
  
  #-src/org
  	${CP}  ../src/org/Makefile    ../source/src/org
  
  #-src/org/apache
  	${CP}  ../src/org/apache/Makefile    ../source/src/org/apache
  
  #-src/org/apache/xang
  	${CP}  ../src/org/apache/xang/Makefile    ../source/src/org/apache/xang
  
  ###################################
  #copy the Makefiles under samples
  
  
  ###
  #copy higher levels Makefiles
  
  #-samples
  	${CP}  ../samples/Makefile  ../source/samples
  
  # copy the license, ANT build file, Status file, and READMEs
  	${CP}  ../build.xml ../README ../Readme.html ../STATUS ../source
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  1.1                  xml-xang/java/src/Makefile.incl
  
  Index: Makefile.incl
  ===================================================================
  
  #
  # Define the environment commands and/or utilities
  #
  JAR = jar c0vf 
  #JAVAC = javac
  JAVAC = jvc
  RM = -rm 
  
  #define MKDIR and CP for unix machines
  MKDIR = mkdir -p 
  CP = cp
  #
  # Define the version strings
  #
  PRODUCTVERSION = 0_0_1
  PRODUCTVERSION_DOT = 0.0.1
  PRODUCTNAME = Xang
  
  #define the jar file names
  
  JARFILE = xang.jar
  SAMPLESJARFILE = xangSamples.jar
  
  #define the package value	
  PACKAGES = org.apache.xang \
             org.apache.xang.net \
             org.apache.xang.util \
             org.apache.xang.xap \
             org.apache.xang.scriptEngine \
  
  
  BINZIPFILE = ${PRODUCTNAME}-J-bin.${PRODUCTVERSION_DOT}.zip
  SRCZIPFILE = ${PRODUCTNAME}-J-src.${PRODUCTVERSION_DOT}.zip
  
  BINTARFILE = ${PRODUCTNAME}-J-bin.${PRODUCTVERSION_DOT}.tar
  SRCTARFILE = ${PRODUCTNAME}-J-src.${PRODUCTVERSION_DOT}.tar
  
  BINJARFILE = ${PRODUCTNAME}-J-bin.${PRODUCTVERSION_DOT}.jar
  SRCJARFILE = ${PRODUCTNAME}-J-src.${PRODUCTVERSION_DOT}.jar