about summary refs log tree commit diff stats
path: root/makefile
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-07-16 11:13:36 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-07-16 11:13:36 -0700
commit7cae95a9ba04f234628bfa77b628f471ec1d3213 (patch)
treec82184538a10ca70d4ef35b74ddc154b301c167b /makefile
parent2c3afb53dda7c83c70be4c12bd76930fe568b860 (diff)
downloadmu-7cae95a9ba04f234628bfa77b628f471ec1d3213.tar.gz
1794 - stop redundantly recompiling on .mu changes
Diffstat (limited to 'makefile')
-rw-r--r--makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/makefile b/makefile
index c1ed25ab..a8c000b5 100644
--- a/makefile
+++ b/makefile
@@ -1,13 +1,17 @@
+all: mu_bin core.mu
+
 mu_bin: makefile enumerate/enumerate tangle/tangle mu.cc termbox/libtermbox.a
 	c++ -g -O3 -Wall -Wextra -fno-strict-aliasing mu.cc termbox/libtermbox.a -o mu_bin
 
 # To see what the program looks like after all layers have been applied, read
 # mu.cc
-mu.cc: 0*
+mu.cc: 0*.cc
 	./tangle/tangle $$(./enumerate/enumerate --until 9999 |grep -v '.mu$$') > mu.cc
-	cat $$(./enumerate/enumerate --until 9999 |grep '.mu$$') > core.mu
 	make --no-print-directory autogenerated_lists
 
+core.mu: 0*.mu mu.cc
+	cat $$(./enumerate/enumerate --until 9999 |grep '.mu$$') > core.mu
+
 enumerate/enumerate:
 	cd enumerate && make && ./enumerate test