added posix indent configuration and indent make target

This commit is contained in:
Lorenzo Torres 2025-11-03 23:36:06 +01:00
parent a54825931b
commit 8fa90e10b1
2 changed files with 25 additions and 3 deletions

View file

@ -12,9 +12,9 @@ SRC:=\
core/vector.c\
ifeq (${GRAPHICS_BACKEND},gl)
SRC += gl/gl.c\
gl/platform.c\
gl/renderer.c
SRC += gl/gl.c\
gl/platform.c\
gl/renderer.c
endif
ifeq (${GRAPHICS_BACKEND},vk)
SRC += vk/platform.c\
@ -35,3 +35,11 @@ all: ${OBJ}
.PHONY: clean
clean:
@rm -rfv ${OBJ} topaz
INDENTABLE := $(shell find . -name "*.c" -o -name "*.h")
INDENTABLE := $(filter-out ./gl/gl.h,$(INDENTABLE))
INDENTABLE := $(filter-out ./rgfw.h,$(INDENTABLE))
indent: $(INDENTABLE:%=%.indent)
%.indent: %
indent $<