dblabs/makefile

14 lines
161 B
Makefile
Raw Normal View History

2024-01-24 17:40:07 +01:00
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)