added posix indent configuration and indent make target
This commit is contained in:
parent
a54825931b
commit
8fa90e10b1
2 changed files with 25 additions and 3 deletions
14
.indent.pro
vendored
Normal file
14
.indent.pro
vendored
Normal file
|
|
@ -0,0 +1,14 @@
|
||||||
|
-i8
|
||||||
|
-ts8
|
||||||
|
-ut
|
||||||
|
-brf
|
||||||
|
-lp
|
||||||
|
-ce
|
||||||
|
-npcs
|
||||||
|
-ncs
|
||||||
|
-l80
|
||||||
|
-cd33
|
||||||
|
-nip
|
||||||
|
-npsl
|
||||||
|
-di1
|
||||||
|
-ldi1
|
||||||
8
makefile
8
makefile
|
|
@ -35,3 +35,11 @@ all: ${OBJ}
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
clean:
|
clean:
|
||||||
@rm -rfv ${OBJ} topaz
|
@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 $<
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue