dblabs/makefile
2024-01-24 17:40:07 +01:00

13 lines
161 B
Makefile

DB_NAME := lab.db
SQL_FILES := init.sql lab1.sql
.PHONY: all clean
all: $(SQL_FILES:.sql=.db)
%.db: %.sql
sqlite3 $(DB_NAME) < $<
clean:
rm -f $(DB_NAME)