From: Harald Hoyer Date: Thu, 25 Feb 2021 09:52:53 +0000 (+0100) Subject: feat: extend Makefile indent target X-Git-Tag: 054~309 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e0a0fa61749152fd5bc837770a02cf22d7e02d40;p=thirdparty%2Fdracut.git feat: extend Makefile indent target - extend the C indent file pattern - add shfmt, if installed --- diff --git a/Makefile b/Makefile index c7859ff47..8b2a64ebf 100644 --- a/Makefile +++ b/Makefile @@ -91,9 +91,8 @@ dracut-util: util/util cp -a $< $@ indent: - indent -i8 -nut -br -linux -l120 install/dracut-install.c - indent -i8 -nut -br -linux -l120 skipcpio/skipcpio.c - indent -i8 -nut -br -linux -l120 util/util.c + indent -i8 -nut -br -linux -l120 $(wildcard *.[ch] */*.[ch]) + if type -P shfmt >/dev/null; then shfmt -w -s .; fi doc: $(manpages) dracut.html