From 67c27b93788fa429570da22a48f98291cd402e49 Mon Sep 17 00:00:00 2001 From: zlago Date: Sat, 12 Apr 2025 22:42:59 +0200 Subject: separate compiling the binary and assets --- GNUmakefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/GNUmakefile b/GNUmakefile index f1720b7..583b370 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -13,9 +13,13 @@ srcs := $(wildcard src/*.c) objs := $(addprefix out/${NS}/,$(notdir ${srcs:.c=.o})) deps := $(addprefix out/${NS}/,$(notdir $(patsubst %.c,%.d,$(wildcard src/*.c)))) -.PHONY: all run clean +.PHONY: all bin res run clean -all: out/${NS}/a.${EXTENSION} out/assets.res +all: bin res + +bin: out/${NS}/a.${EXTENSION} + +res: out/assets.res run: out/${NS}/a.${EXTENSION} out/assets.res ./$^ -- cgit 1.4.1-2-gfad0