Add 'indent' make target.
authorMikko Värri <vmj@linuxbox.fi>
Mon, 29 Aug 2011 01:25:18 +0000 (04:25 +0300)
committerMikko Värri <vmj@linuxbox.fi>
Mon, 29 Aug 2011 01:25:18 +0000 (04:25 +0300)
Makefile

index 6f44ac8..70220d9 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -31,6 +31,13 @@ install: all
        mkdir -p $(DESTDIR)$(MAN1DIR)
        cp $(NAME).1 $(DESTDIR)$(MAN1DIR)/
 
+# Linux style, except -bl instead of -br, -nce instead of -ce, -ci8
+# instead of -ci4, -l74 instead of -l80, and -psl instead of -npsl.
+# Also, added -nut and -bli0.
+indent:
+       @indent -npro -linux -bl -nce -ci8 -l74 -psl -nut -bli0 $(NAME).c
+       -@rm $(NAME).c~
+
 dist-internal:
        -@rm -rf $(NAME)-$(VERSION) $(NAME)-$(VERSION).tar.gz 2>/dev/null || true
        @mkdir $(NAME)-$(VERSION)