TARGET = yomikun SRCS += ./main.ts SRCS += ./core/yomikun.ts SRCS += ./db/db.ts SRCS += ./language/tags.ts SRCS += ./language/translator.ts SRCS += ./language/types.ts SRCS += ./util/array.ts SRCS += ./util/error.ts SRCS += ./util/string.ts DENO_FLAGS += --unstable DENO_FLAGS += --allow-ffi DENO_FLAGS += --allow-env DENO_FLAGS += --allow-read DENO_FLAGS += --allow-write DENO_FLAGS += --allow-net include test/tests.mk .PHONY: build test build: $(TARGET) $(TARGET): $(SRCS) deno compile --output $@ $< $(DENO_FLAGS) test: deno test $(DENO_FLAGS) $(TESTS)