summary refs log tree commit diff
path: root/minic
diff options
context:
space:
mode:
authorQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2016-03-27 18:05:27 -0400
committerQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2016-03-27 18:05:27 -0400
commite38c61d95fccd208e13dd14a31a567c3d431677a (patch)
tree4b0b72c5fa5cb7fda48f67f3abcfeaf9e92d9023 /minic
parentc46e1ba7b564ecdced28889258051e35b5df228f (diff)
downloadroux-e38c61d95fccd208e13dd14a31a567c3d431677a.tar.gz
add centralized all and clean targets
Diffstat (limited to 'minic')
-rw-r--r--minic/Makefile11
1 files changed, 8 insertions, 3 deletions
diff --git a/minic/Makefile b/minic/Makefile
index 39b2946..1999cf0 100644
--- a/minic/Makefile
+++ b/minic/Makefile
@@ -1,8 +1,13 @@
-CFLAGS=-g -Wall
+BIN = minic
 
-minic: yacc minic.y
+CFLAGS += -g -Wall
+
+$(BIN): yacc minic.y
 	./yacc minic.y
 	$(CC) $(CFLAGS) -o $@ y.tab.c
+
+all: $(BIN)
 clean:
 	rm -f yacc minic y.*
-.PHONY: clean
+
+.PHONY: all clean