aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorIgor <pashev.igor@gmail.com>2010-01-19 18:37:34 +0300
committerIgor <pashev.igor@gmail.com>2010-01-19 18:37:34 +0300
commit8b2047a458e5a4e200c6130893a568797648b9d3 (patch)
treec3640b4264b5544a254ea492298af71cbc65db3e /Makefile
parent5e88c2b8496a3f1b46b80fe64354461a0cfb74cf (diff)
downloadbrainfuck-8b2047a458e5a4e200c6130893a568797648b9d3.tar.gz
indent, trace to stdout
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