From ef6adf71e7a6ef6770ad1c28b28335acbf8382ab Mon Sep 17 00:00:00 2001 From: Imbus <> Date: Wed, 14 Feb 2024 19:55:17 +0100 Subject: [PATCH] Makefile --- Makefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Makefile b/Makefile index a239396..b69a45b 100644 --- a/Makefile +++ b/Makefile @@ -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