aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 02871ab..a11d880 100644
--- a/Makefile
+++ b/Makefile
@@ -3,6 +3,11 @@ BF = brainfuck
CC = gcc
CFLAGS = -ansi -pedantic -Wall -Wextra -Werror
+INDENT_OPT = -bap -bad -bbb -bl -bli0 -bls \
+ -c2 -cli2 -cdb -sc -ncs -npcs \
+ -nhnl -i4 -l80 -saf -sai -saw \
+ -nprs -sob -nut -nbc -ppi2 -nbbo
+
all: $(BF) README
$(BF): $(BF).c
@@ -11,3 +16,7 @@ $(BF): $(BF).c
README: $(BF)
./$(BF) -h > $@
+indent: $(BF).c
+ indent $(INDENT_OPT) $?
+
+.PHONY: indent