Skip to content

Commit

Permalink
Added debug and tests modes to makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
CalumFreeman committed Aug 30, 2018
1 parent ca4e1e6 commit 10d92c1
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,14 @@ all: $(OUTPUTDIR) libJyNI libJyNI-Loader JyNI
debug: CFLAGS += -g
debug: all

tests:
@echo 'Tests have not been implemented yet'
tests: build-tests run-tests

build-tests:
@echo 'building tests is not fully supported yet, this will either not work or install the demo extension as an actuall extension'
python ./DemoExtension/setup.py install

run-tests:
java -Djava.library.path=./build/ -cp $(JYTHON):./build/JyNI.jar org.python.util.jython ./JyNI-Demo/src/test_all.py

$(OUTPUTDIR):
mkdir $(OUTPUTDIR)
Expand Down Expand Up @@ -146,5 +152,5 @@ clean:
rm -f ./JyNI-C/src/Modules/*.o
rm -f ./JyNI-Loader/JyNILoader.o

.PHONY: JyNI libJyNI libJyNI-Loader clean cleanJ JAVA_HOME_hint all debug tests
.PHONY: JyNI libJyNI libJyNI-Loader clean cleanJ JAVA_HOME_hint all debug tests run-tests build-tests

0 comments on commit 10d92c1

Please sign in to comment.