From 6242a0b9d988762cb93399b81141ae581dc597df Mon Sep 17 00:00:00 2001 From: fredrikr79 Date: Wed, 17 Sep 2025 12:55:04 +0200 Subject: [PATCH] make make great again --- Makefile | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 07936e0..ee192a0 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,15 @@ -build: main.oz - ozc -c main.oz +SRC = main.oz + +.PHONY: all run clean + +all: run + +%.ozf: %.oz + ozc -c $< + +run: $(SRC)f + ozengine $(SRC)f + +clean: + rm -f *.ozf -run: build - echo "make: built successfully" - ozengine main.ozf