feat: extend Makefile indent target

- extend the C indent file pattern
- add shfmt, if installed
master
Harald Hoyer 2021-02-25 10:52:53 +01:00 committed by Harald Hoyer
parent eddca44221
commit e0a0fa6174
1 changed files with 2 additions and 3 deletions

View File

@ -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