Commit Diff


commit - 25ab50d126d58c6663311c9e0010b385c693f791
commit + 2d3add37cd6f15d5f19d214dde13fed4a0601267
blob - 7e53061603dc8609f052bbd8a3be3f5ff01ca0b1
blob + ab0102707b868488a2febe03d5d6b0ed9da058b1
--- README.md
+++ README.md
@@ -4,6 +4,11 @@ bfc -- a brainfuck compiler
 bfc is a simple brainfuck compiler.  It's written in Haskell because I
 hate myself and outputs QBE because why not.
 
+Makefiles are clunky, hard to write and errors prone, but they also
+have their shortcomings!  You can use make to build bfc:
+
+	$ make
+
 Usage:
 
 	$ bfc sources... > program.ssa
blob - /dev/null
blob + 379de2bebd982e9163307da3db12955181d4d932 (mode 644)
--- /dev/null
+++ Makefile
@@ -0,0 +1,11 @@
+GHC =	ghc
+
+.PHONY: all clean
+
+all: bfc
+
+bfc: bfc.hs
+	${GHC} bfc.hs
+
+clean:
+	rm -f bfc *.hi *.o