1 |
#$Id$ |
#$Id$ |
2 |
|
|
|
all: java docs |
|
|
|
|
|
clean: |
|
|
@echo "Removing everything found in .cvsignores" |
|
|
find . -name ".cvsignore"|while read ign; do (cd `dirname $$ign` && cat .cvsignore|while read files; do rm -Rf $$files; done); done |
|
|
find . -name "*.pyc" | xargs rm -f |
|
|
find . -name "*.class" | xargs rm -f |
|
|
rm -rf CLASSES |
|
|
|
|
|
TEST=. |
|
|
|
|
|
# Use: make test TEST=test/gzz/vob/vobmatcher.test, to run a single test. |
|
|
test:: |
|
|
$(JYTHON) test.py $(DBG) $(TEST) |
|
|
|
|
3 |
########################################################################## |
########################################################################## |
4 |
# Defining variables |
# Variables |
5 |
NAVIDOC_DEPENDS = ../navidoc-depends |
|
6 |
|
NAVIDOC_DEPENDS = lib |
7 |
CLASSPATH =$(NAVIDOC_DEPENDS)/jython.jar:$(shell echo $$CLASSPATH) |
CLASSPATH =$(NAVIDOC_DEPENDS)/jython.jar:$(shell echo $$CLASSPATH) |
8 |
JVMFLAGS= -Xms64M -Xmx128M # -Xincgc |
JVMFLAGS= -Xms64M -Xmx128M |
9 |
CLASSDIR=CLASSES/ |
CLASSDIR=CLASSES/ |
10 |
|
|
11 |
export CLASSPATH |
export CLASSPATH |
27 |
JAVA=java |
JAVA=java |
28 |
endif |
endif |
29 |
|
|
|
ifeq (,$(JAVAC)) |
|
|
JAVAC=javac |
|
|
endif |
|
|
|
|
30 |
ifneq (,$(EDITOR)) |
ifneq (,$(EDITOR)) |
31 |
EDITOR_OPTION=-Duser.editor=$(EDITOR) |
EDITOR_OPTION=-Duser.editor=$(EDITOR) |
32 |
else |
else |
34 |
endif |
endif |
35 |
|
|
36 |
########################################################################## |
########################################################################## |
37 |
# General |
# General targets |
|
java: |
|
|
mkdir -p $(CLASSDIR) |
|
|
$(JAVAC) -g -d $(CLASSDIR) `find org -name '*.java'` |
|
38 |
|
|
39 |
########################################################################## |
all: docs |
|
# General documentation targets |
|
|
docs: java-doc navi-doc navilink |
|
40 |
|
|
41 |
DOCPKGS= -subpackages org |
docs: navidoc navilink |
|
#DOCPKGS= org.nongnu.navidoc.util |
|
42 |
|
|
43 |
JAVADOCOPTS=-use -version -author -windowtitle "Navidoc Java API" |
clean: |
44 |
java-doc: |
@echo "Removing everything found in .cvsignores" |
45 |
find . -name '*.class' | xargs rm -f # Don't let javadoc see these |
find . -name ".cvsignore"|while read ign; do (cd `dirname $$ign` && cat .cvsignore|while read files; do rm -Rf $$files; done); done |
46 |
rm -Rf doc/javadoc |
find . -name "*.pyc" | xargs rm -f |
47 |
mkdir -p doc/javadoc |
find . -name "*.class" | xargs rm -f |
48 |
javadoc $(JAVADOCOPTS) -d doc/javadoc -sourcepath . $(DOCPKGS) |
|
49 |
|
navidoc:: # Compiles reST into HTML |
|
peg: # Creates a new PEG, uses python for quick use |
|
|
make new-peg PEGDIR="doc/pegboard" |
|
|
|
|
|
pegs: # Complies only pegboard |
|
|
make html RST="doc/pegboard/" |
|
|
# |
|
|
########################################################################## |
|
|
# Navidoc targets |
|
|
navi-doc: # Compiles reST into HTML |
|
50 |
make html RST="doc/" |
make html RST="doc/" |
51 |
|
|
52 |
navilink: # Bi-directional linking using imagemaps |
navilink: # Linking diagrams in compiled HTMLs bi-directionally using imagemaps |
53 |
make imagemap HTML="doc/" |
make imagemap HTML="doc/" |
54 |
|
|
55 |
naviloop: # Compiles, links, loops |
########################################################################## |
56 |
make html-loop DBG="--imagemap $(DBG)" RST="$(RST)" |
# Navidoc targets |
|
|
|
|
new-peg: # Creates a new PEG |
|
|
$(JYTHON) newpeg.py $(PEGDIR) |
|
57 |
|
|
58 |
html: # Compiles reST into HTML, directories are processed recursively |
html: # Compiles reST into HTML, directories are processed recursively (for "*.rst") |
59 |
$(JYTHON) rst2any.py --html -d navidoc -d docutils -d pegboard -d mp.fail $(DBG) $(RST) |
$(JYTHON) rst2any.py --html -d navidoc -d docutils -d mp.fail $(DBG) $(RST) |
60 |
|
|
61 |
html-loop: # Loop version for quick recompiling |
html-loop: # Loops for quick recompiling (jython has a huge startup time) |
62 |
$(JYTHON) rst2any.py --loop --html -d navidoc -d docutils -d pegboard -d mp.fail $(DBG) $(RST) |
$(JYTHON) rst2any.py --loop --html -d navidoc -d docutils -d mp.fail $(DBG) $(RST) |
63 |
|
|
64 |
imagemap: # Bi-directional linking using imagemaps |
imagemap: # Linking diagrams in compiled HTMLs bi-directionally using imagemaps |
65 |
$(JYTHON) rst2any.py --imagemap -d navidoc -d mp.fail $(DBG) $(HTML) |
$(JYTHON) rst2any.py --imagemap -d navidoc -d mp.fail $(DBG) $(HTML) |
66 |
|
|
67 |
latex: # Compiles reST into LaTeX, directories are processed recursively |
naviloop: # Compiles, links, loops |
68 |
$(JYTHON) rst2any.py --latex -d navidoc -d docutils $(DBG) $(RST) |
make html-loop DBG="--imagemap $(DBG)" RST="$(RST)" |
69 |
|
|
70 |
|
########################################################################## |
71 |
|
# Use: make test TEST=test/parser.test, to run a single test. |
72 |
|
TEST=. |
73 |
|
test:: |
74 |
|
$(JYTHON) test.py $(DBG) $(TEST) |
75 |
|
|
|
latex-loop: # Loop version for quick recompiling |
|
|
$(JYTHON) rst2any.py --loop --latex -d navidoc -d docutils $(DBG) $(RST) |
|