mirror of https://github.com/dspinellis/UMLGraph
New distribution structure.
This commit is contained in:
parent
23b5a6cf2e
commit
000847ecfd
41
Makefile
41
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
|
||||
|
|
|
|||
Loading…
Reference in New Issue