all: OracleNetServicesV3.tokens test

OracleNetServicesV3.tokens:
	java -jar antlr-3.1.3.jar OracleNetServicesV3.g
	sed -i -e 's:RecognitionException, re:RecognitionException as re:g' OracleNetServicesV3*.py

test:
	python3 Test.py -f tnsnames.ora -p DIRECTORY -v abc

clean:
	rm -f OracleNetServicesV3Parser.py OracleNetServicesV3.tokens OracleNetServicesV3Lexer.py OracleNetServicesV3Lexer.pyc OracleNetServicesV3Parser.pyc
