########################################################### # Makefile for xml-xang, a Web Application Framework # # Please note the following assumptions! # - See make.include for system tools definitions. We assume # that each of these tools are on the path and properly setup. # # - Use GNU make or an equivalent. On Win32, you can see # http://sourceware.cygnus.com/cygwin for a port. # # - With JDK 1.1.7B or earlier, a 'make all' may fail the first # time. Try running it again twice, and everything should work. # Note that when using JDK 1.2.x, it all works fine. We'll work on it. # # - Note the several attempts to determine if we're on WinXX or Unix: # ifeq (,$(findstring usr,$(PATH))) # Feel free to modify to work for your machine, and suggest a better # way to create a platform-independent makefile. # # - The docs directory currently requires javadoc from the JDK 1.2.x # You may need to edit make.include 'JAVADOC12' for your system. # # - Yes, we plan to move to an 'Ant' based make system soon # (Ant is from jakarta.apache.org and is a Java-based make) ########################################################### include make.include EXTRA_CLASSPATH = . SUBDIRS = java/src ########################################################### # Main targets definitions # # Note that make.include also defines common targets ########################################################### all: makesubdirs makejar makesamples makedocs build: makesubdirs makejar # Create a distribution module dist: makedist docs: makedocs samples: makesamples # Need to do something here for passing debug flags debug: clean makesubdirs makejar # Need to do something here for passing debug flags release: clean makesubdirs makejar jars: $(JARNAME) makejar: $(JARNAME) PROPPATH = org/apache/xang/xap $(JARNAME):: $(CP) java/src/$(PROPPATH)/*.cfg java/src/$(CLASS_DIR)/$(PROPPATH)/. cd java/src/classes ; \ $(JAR) $(JARFLAGS) $@ . XANG := xang XVERSION = _0_0_1 CPR = cp -Rvf .PHONY: makedist makedist: echo Making distribution $(XANG)$(XVERSION); \ mkdir $(XANG)$(XVERSION) ; \ $(CP) * $(XANG)$(XVERSION) ; \ $(CPR) xdocs $(XANG)$(XVERSION) ; \ $(CPR) build $(XANG)$(XVERSION) ; \ $(CPR) samples $(XANG)$(XVERSION) ; \ $(CPR) java/src $(XANG)$(XVERSION) ; \ $(JAR) -cf $(XANG)$(XVERSION)$(JARX) $(XANG)$(XVERSION); \ echo NOTE: You may wish to manually sign this! # Subsidiary targets are defined in make.include clean:: cleansubdirs cleandocs cleansamples