<commit_before># 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 $@

.java.class:
	javac -classpath /jdk/lib/tools.jar $<

.dot.ps:
	dot -Tps -o$@ $<

.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

UmlGraph.jar: UmlGraph.class
	jar cvf UmlGraph.jar ClassGraph.class ClassInfo.class Options.class \
	StringFuns.class UmlGraph.class
	jar i UmlGraph.jar

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<commit_msg>New distribution structure.<commit_after>#
# $Id$
#

.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 d:/jdk/lib/tools.jar $<

$(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)

docs:
	(cd doc && make)

UmlGraph.jar: UmlGraph.class
	jar cvf UmlGraph.jar ClassGraph.class ClassInfo.class Options.class \
	StringFuns.class UmlGraph.class
	jar i UmlGraph.jar

UmlGraph.class: UmlGraph.java

web: $(TARBALL)
	cp $(TARBALL) $(WEBDIR)
	sed "s/VERSION/$(VERSION)/g" index.html >$(WEBDIR)/index.html
{'fraction_non_alphanumeric': 0.15594855305466238, 'fraction_numerical': 0.0010718113612004287, 'mean_word_length': 3.8242894056847545, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2900885', 'n_tokens_mistral': 803, 'n_tokens_neox': 777, 'n_words': 177}