Add editorconfig file to keep TAB in Makefile

This commit is contained in:
Mark Nellemann 2022-11-12 14:34:11 +01:00
parent 66bac0e120
commit e67ab2ec7f
2 changed files with 19 additions and 3 deletions

16
.editorconfig Normal file
View file

@ -0,0 +1,16 @@
# top-most EditorConfig file
root = true
# Unix-style newlines with a newline ending every file
[*]
charset = utf-8
trim_trailing_whitespace = true
end_of_line = lf
insert_final_newline = true
# Tab indentation (no size specified)
[Makefile]
indent_style = tab
[*.{c,h,cpp,hpp}]
indent_size = 4

View file

@ -1,6 +1,7 @@
#
#
# Use GNU-Make (gmake) for building
#
#
bin = aix-disk-perfstat
src = $(wildcard *.c)
obj = $(src:.c=.o)
@ -14,4 +15,3 @@ $(bin): $(obj)
.PHONY: clean
clean:
rm -f $(obj) $(bin)