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