This commit is contained in:
Imbus 2024-02-14 19:55:17 +01:00
parent 77acf8069e
commit ef6adf71e7

View file

@ -5,6 +5,12 @@ SQL_SCRIPT := database.sql
# Define targets and their dependencies
all: init_db
run:
./mvnw compile exec:java -Dexec.mainClass="launch.Main"
watch:
watchexec -c -r -w src make run
init_db: $(DB_NAME)
# Target to create the database
@ -18,6 +24,7 @@ clean:
dumptables:
sqlite3 $(DB_NAME) "SELECT * FROM Respondents;"
sqlite3 $(DB_NAME) "SELECT * FROM Answers;"
sqlite3 $(DB_NAME) "SELECT * FROM ProjectDetails;"
# Phony targets
.PHONY: all init_db clean