25 lines
475 B
Makefile
25 lines
475 B
Makefile
|
|
|
|
|
|
test: FORCE
|
|
@echo "\nCompiling the SQL parser and the tests...\n"
|
|
@make clean -C src/ >/dev/null || exit 1
|
|
@make tests -C src/ >/dev/null || exit 1
|
|
@make grammar_test -C src/ >/dev/null || exit 1
|
|
@echo "Running tests..."
|
|
@./bin/grammar_test -f "src/tests/valid_queries.sql"
|
|
@./bin/tests
|
|
|
|
|
|
build: FORCE
|
|
@echo "\nBuilding the SQL parser... (Run tests with 'make test')"
|
|
@echo "Build directory: build/\n"
|
|
make -C src/
|
|
|
|
|
|
docs: FORCE
|
|
doxygen docs/doxy.conf
|
|
|
|
|
|
FORCE:
|