mirror of
https://github.com/nfc-tools/libnfc.git
synced 2026-02-19 08:16:35 +00:00
Rework the indent target.
- Check indent is present at ./configure stage; - If gindent(1) is installed, use it instead of indent(1);
This commit is contained in:
@@ -20,6 +20,8 @@ doc : Doxyfile
|
||||
.PHONY: doc
|
||||
endif
|
||||
|
||||
INDENT_CMD = indent -br -brs -ce --line-length120 -nut -i2
|
||||
if HAS_INDENT
|
||||
INDENT_ARGS = -br -brs -ce --line-length120 -nut -i2
|
||||
indent:
|
||||
find $(top_srcdir)/libnfc $(top_srcdir)/include $(top_srcdir)/examples -name "*.[hc]" -exec $(INDENT_CMD) '{}' \;
|
||||
find $(top_srcdir)/libnfc $(top_srcdir)/include $(top_srcdir)/examples -name "*.[hc]" -exec $(INDENT) $(INDENT_ARGS) '{}' ';'
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user