1 |
# This Makefile requires GNU make. |
# This Makefile requires GNU make. |
2 |
|
|
3 |
# all must compile everywhere |
# all must compile everywhere |
4 |
all: compile rmi batchtest |
all: compile rmi test |
5 |
alltests: batchtest batchtest-junit slow test- |
alltests: test batchtest-junit slow test- |
6 |
botcompile: compile rmi |
botcompile: compile rmi |
7 |
bottest: batchtest batchtest-junit slow |
bottest: test batchtest-junit slow |
8 |
|
|
9 |
CVS=cvs |
CVS=cvs |
10 |
|
|
15 |
dist: |
dist: |
16 |
rm -Rf $(DISTDIR) |
rm -Rf $(DISTDIR) |
17 |
mkdir $(DISTDIR) |
mkdir $(DISTDIR) |
18 |
$(NOTEST) || $(MAKE) batchtest slow |
$(NOTEST) || $(MAKE) test slow |
19 |
$(MAKE) clean |
$(MAKE) clean |
20 |
$(MAKE) ready_to_compile doc |
$(MAKE) ready_to_compile doc |
21 |
find . ! -type d|egrep -v '^\./(basalt|lava|C\+\+|Perl|Java|Modules)|/CVS/|#|~|\$$py\.class$$|\./gzz.*(jar|tar.gz)$$' | \ |
find . ! -type d|egrep -v '^\./(basalt|lava|C\+\+|Perl|Java|Modules)|/CVS/|#|~|\$$py\.class$$|\./gzz.*(jar|tar.gz)$$' | \ |
36 |
rm -Rf $(jardir) |
rm -Rf $(jardir) |
37 |
mkdir $(jardir) |
mkdir $(jardir) |
38 |
$(MAKE) compile |
$(MAKE) compile |
39 |
$(NOTEST) || $(MAKE) batchtest slow |
$(NOTEST) || $(MAKE) test slow |
40 |
echo 'Main-Class: $(mainclass)' > $(jardir)/manifest |
echo 'Main-Class: $(mainclass)' > $(jardir)/manifest |
41 |
(cd $(jardir) && for jar in pythonlib yaml jythonlib jython; do \ |
(cd $(jardir) && for jar in pythonlib yaml jythonlib jython; do \ |
42 |
jar xvf ../$(GZZ_DEPENDS)/$$jar.jar ;\ |
jar xvf ../$(GZZ_DEPENDS)/$$jar.jar ;\ |
353 |
|
|
354 |
|
|
355 |
# Please note that JUnit tests are deprecated and should be converted into |
# Please note that JUnit tests are deprecated and should be converted into |
356 |
# tests written in python. See targets "test" and "batchtest". |
# tests written in python. See targets "test" and "test". |
357 |
TESTCLASS=gzz.Test |
TESTCLASS=gzz.Test |
358 |
TESTRUNNER=junit.awtui.TestRunner |
TESTRUNNER=junit.awtui.TestRunner |
359 |
TESTCOMMAND=$(JAVA) -Dzdir=$(Z_DIR) $(TESTRUNNER) |
TESTCOMMAND=$(JAVA) -Dzdir=$(Z_DIR) $(TESTRUNNER) |
380 |
$(GLLIB) $(JYTHON) $(DBG) |
$(GLLIB) $(JYTHON) $(DBG) |
381 |
|
|
382 |
|
|
|
test: batchtest # For now |
|
|
|
|
383 |
ifeq (,$(Z)) |
ifeq (,$(Z)) |
384 |
Z=-t |
Z=-t |
385 |
endif |
endif |
386 |
|
|
387 |
batchtest: |
test: |
388 |
$(GLLIB) $(JYTHON) test/test.py |
$(GLLIB) $(JYTHON) test/test.py |
389 |
|
testgl: |
390 |
|
$(GLLIB) $(JYTHON) test/test.py jni |
391 |
runtest: # Use: make runtest TEST=gzz/vob/vobmatcher, to run a single test. |
runtest: # Use: make runtest TEST=gzz/vob/vobmatcher, to run a single test. |
392 |
$(GLLIB) $(JYTHON) test/testutil.py $(DBG) test/$(TEST).test |
$(GLLIB) $(JYTHON) test/testutil.py $(DBG) test/$(TEST).test |
393 |
runtestjni: # In JNI-dependent test's requestJNI must be defined. |
runtestjni: # In JNI-dependent test's requestJNI must be defined. |
447 |
runpplocal: |
runpplocal: |
448 |
$(GLLIB) $(JYTHON) gzz/modules/pp/localpp.py $(DBG) |
$(GLLIB) $(JYTHON) gzz/modules/pp/localpp.py $(DBG) |
449 |
|
|
450 |
gzzgl: |
gl: compilegl testgl |
451 |
|
|
452 |
|
compilegl: compile |
453 |
make -C gfx all |
make -C gfx all |
454 |
|
|
455 |
|
|
456 |
DATE:=$(shell date '+%Y%m%d%H%M%S') |
DATE:=$(shell date '+%Y%m%d%H%M%S') |
457 |
PPDIR:=pp-$(DATE) |
PPDIR:=pp-$(DATE) |
458 |
|
|
459 |
packagepp: compile gzzgl |
packagepp: gl |
460 |
rm -rf $(PPDIR) |
rm -rf $(PPDIR) |
461 |
mkdir $(PPDIR) |
mkdir $(PPDIR) |
462 |
cp -a CLASSES/* $(PPDIR) |
cp -a CLASSES/* $(PPDIR) |