diff --git a/Makefile b/Makefile index bd42a75..4ab7a19 100644 --- a/Makefile +++ b/Makefile @@ -3,40 +3,59 @@ # .SUFFIXES:.class .java -VERSION=3.3 +VERSION=4.1 TARBALL=UMLGraph-$(VERSION).tar.gz ZIPBALL=UMLGraph-$(VERSION).zip DISTDIR=UMLGraph-$(VERSION) WEBDIR=/dds/pubs/web/home/sw/umlgraph -SRCFILE=UmlGraph.java sequence.pic README.txt +DOCLETSRCPATH=src/gr/spinellis/umlgraph/doclet +DOCLETSRC= \ + $(DOCLETSRCPATH)/ClassGraph.java \ + $(DOCLETSRCPATH)/ClassInfo.java \ + $(DOCLETSRCPATH)/Options.java \ + $(DOCLETSRCPATH)/StringUtil.java \ + $(DOCLETSRCPATH)/UmlGraph.java \ + $(DOCLETSRCPATH)/Version.java +TESTSRC = \ + src/gr/spinellis/umlgraph/test/DotDiff.java \ + src/gr/spinellis/umlgraph/test/BasicTest.java +PICFILE=sequence.pic +README=README.txt +JARFILE=lib/UmlGraph.jar +LF=perl -p -e 'BEGIN {binmode(STDOUT);} s/\r//' -.java.class: - javac -Xlint -classpath d:/jdk/lib/tools.jar $< +all: $(JARFILE) -all: UmlGraph.jar +tarball: $(TARBALL) -$(TARBALL): UmlGraph.jar docs Makefile +src/gr/spinellis/umlgraph/doclet/Version.java: Makefile + echo "/* Automatically generated file */" >$@ + echo "package gr.spinellis.umlgraph.doclet;" >>$@ + echo "class Version { public static String VERSION = \"$(VERSION)\";}" >>$@ + +$(TARBALL): $(JARFILE) docs Makefile -cmd /c rd /s/q $(DISTDIR) mkdir $(DISTDIR) mkdir $(DISTDIR)/doc + mkdir $(DISTDIR)/lib cp $(WEBDIR)/doc/* $(DISTDIR)/doc - cp UmlGraph.jar $(DISTDIR) - for i in $(SRCFILE) ;\ - do\ - perl -p -e 'BEGIN {binmode(STDOUT);} s/\r//' $$i >$(DISTDIR)/$$i;\ - done + cp $(JARFILE) $(DISTDIR)/lib + cp build.xml $(DISTDIR) + tar cf - src testdata/{java,dot-ref} --exclude='*/RCS' | tar -C $(DISTDIR) -xvf - + $(LF) $(PICFILE) >$(DISTDIR)/lib/$(PICFILE) + $(LF) $(PICFILE) >$(DISTDIR)/src/$(PICFILE) + $(LF) $(README) >$(DISTDIR)/src/$(README) tar cvf - $(DISTDIR) | gzip -c >$(TARBALL) zip -r $(ZIPBALL) $(DISTDIR) docs: (cd doc && make) -UmlGraph.jar: UmlGraph.class - jar cvf UmlGraph.jar ClassGraph.class ClassInfo.class Options.class \ - StringUtil.class UmlGraph.class - jar i UmlGraph.jar +$(JARFILE): $(DOCLETSRC) + ant compile -UmlGraph.class: UmlGraph.java +test: + ant test web: $(TARBALL) CHECKSUM.MD5 cp $(TARBALL) $(ZIPBALL) CHECKSUM.MD5 $(WEBDIR) diff --git a/README.txt b/README.txt index 65c25f5..242c32b 100644 --- a/README.txt +++ b/README.txt @@ -5,11 +5,18 @@ UML class and sequence diagrams. You can browse the system's documentation from the doc/index.html page, or print it from doc/indexw.html. -To compile the Java doclet from the source code simply execute: - javac -classpath YOUR_JDK_DIRECTORY/lib/tools.jar UmlGraph.java - jar cvf UmlGraph.jar ClassGraph.class ClassInfo.class Options.class StringFuns.class UmlGraph.class - jar i UmlGraph.jar +To install the elements required to run UMLGraph, simply copy +the contents of the lib directory to a location consistent with +your installation's conventions (for example to /usr/local/lib). + +To compile the Java doclet from the source code run ant on the +build.xml file. + +If you change the source code, you can run regression tests by +executing "ant test". Project home page: http://www.spinellis.gr/sw/umlgraph -Diomidis Spinellis - May 2004 +Diomidis Spinellis - November 2005 + +$Id$ diff --git a/build.xml b/build.xml index f4076e8..68a1f6e 100644 --- a/build.xml +++ b/build.xml @@ -1,109 +1,42 @@ - + - The specification for all umlgraph build processes. + The specification for the Java-based umlgraph build processes. $Id$ - - + + + + + - - - - - + + - - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + +