ci: splitout indent-c from indent

... to be able to call it from CI
master
Harald Hoyer 2021-03-12 10:33:23 +01:00 committed by Harald Hoyer
parent 07b65603ff
commit 9e587f0008
2 changed files with 6 additions and 2 deletions

View File

@ -17,7 +17,7 @@ jobs:
run: sudo apt-get install indent

- name: indent
run: make indent
run: make indent-c

- name: check formatting
run: git diff --exit-code

View File

@ -92,8 +92,12 @@ util/util: $(UTIL_OBJECTS)
dracut-util: util/util
cp -a $< $@

indent:
.PHONY: indent-c
indent-c:
indent -i8 -nut -br -linux -l120 $(wildcard *.[ch] */*.[ch])

.PHONY: indent
indent: indent-c
ifeq ($(HAVE_SHFMT),yes)
shfmt -w -s .
endif