From 000847ecfdd6e293730ef2937dfdc83c1e08fe67 Mon Sep 17 00:00:00 2001 From: Diomidis Spinellis Date: Sun, 9 May 2004 09:41:48 +0000 Subject: [PATCH] New distribution structure. --- Makefile | 41 +++++++++++++++++++++++------------------ 1 file changed, 23 insertions(+), 18 deletions(-) diff --git a/Makefile b/Makefile index dc87125..45695cb 100644 --- a/Makefile +++ b/Makefile @@ -1,26 +1,31 @@ -# This works for me; your mileage may vary - dds # # $Id$ # -.SUFFIXES:.class .java .dot .ps .gif - -.java.dot: - javadoc -docletpath UmlGraph.jar -doclet UmlGraph -private $< - mv graph.dot $@ +.SUFFIXES:.class .java +VERSION=2.0 +TARBALL=UMLGraph-$(VERSION).tar.gz +DISTDIR=UMLGraph-$(VERSION) +WEBDIR=/dds/pubs/web/home/sw/umlgraph +SRCFILE=UmlGraph.java sequence.pic README .java.class: - javac -classpath /jdk/lib/tools.jar $< + javac -classpath d:/jdk/lib/tools.jar $< -.dot.ps: - dot -Tps -o$@ $< +$(TARBALL): UmlGraph.jar docs Makefile + cmd /c rd /s/q $(DISTDIR) + mkdir $(DISTDIR) + mkdir $(DISTDIR)/doc + 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 + tar cvf - $(DISTDIR) | gzip -c >$(TARBALL) -.dot.gif: - dot -Tgif -o$@ $< - -#all: UmlGraph.class vis.gif schema.gif general.gif catalina.gif advrel.gif assoc.gif classadd.gif -#all: UmlGraph.class vis.ps schema.ps general.ps catalina.ps advrel.ps assoc.ps classadd.ps -all: UmlGraph.jar vis.dot schema.dot general.dot catalina.dot advrel.dot assoc.dot classadd.dot +docs: + (cd doc && make) UmlGraph.jar: UmlGraph.class jar cvf UmlGraph.jar ClassGraph.class ClassInfo.class Options.class \ @@ -29,6 +34,6 @@ UmlGraph.jar: UmlGraph.class UmlGraph.class: UmlGraph.java -web: UmlGraph.jar - cmd /c del /f/q \dds\pubs\web\home\sw\umlgraph - cp *.java *.jar *.gif *.dot index.html makefile /dds/pubs/web/home/sw/umlgraph +web: $(TARBALL) + cp $(TARBALL) $(WEBDIR) + sed "s/VERSION/$(VERSION)/g" index.html >$(WEBDIR)/index.html