Skip to content

Commit

Permalink
feat: extend Makefile indent target
Browse files Browse the repository at this point in the history
- extend the C indent file pattern
- add shfmt, if installed
  • Loading branch information
haraldh committed Mar 13, 2021
1 parent eddca44 commit e0a0fa6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit e0a0fa6

Please sign in to comment.