diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..7f816f1 --- /dev/null +++ b/Makefile @@ -0,0 +1,19 @@ +# Define variables +DB_NAME := lab.db3 +SQL_SCRIPT := database.sql + +# Define targets and their dependencies +all: init_db + +init_db: $(DB_NAME) + +# Target to create the database +$(DB_NAME): $(SQL_SCRIPT) + sqlite3 $@ < $< + +# Clean target +clean: + rm -f $(DB_NAME) + +# Phony targets +.PHONY: all init_db clean diff --git a/database.sql b/database.sql new file mode 100644 index 0000000..e69de29