about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2016-09-12 10:33:15 -0700
committerKartik K. Agaram <vc@akkartik.com>2016-09-12 10:33:15 -0700
commite309b9e82ded3ece3985a214cbd432b45de1ba4d (patch)
tree80213fbd2f093e34eaad1d42edbf58dc6b6e05b2
parent59e47aca14ce352a1814953df4be220406c94747 (diff)
downloadmu-e309b9e82ded3ece3985a214cbd432b45de1ba4d.tar.gz
3342
-rw-r--r--makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/makefile b/makefile
index 7adfaf2d..5a95db52 100644
--- a/makefile
+++ b/makefile
@@ -6,6 +6,13 @@
 
 all: mu_bin core.mu
 
+# beware: if you introduce or delete functions the makefile isn't smart enough
+# to recompute dependencies. You have to manually run 'make redo' to recreate
+# the .build/ directory from scratch.
+redo:
+	rm -rf .build
+	@make
+
 CXX ?= c++
 CXXFLAGS ?= -g -O3
 CXXFLAGS := ${CXXFLAGS} -Wall -Wextra -ftrapv -fno-strict-aliasing
@@ -67,7 +74,7 @@ test_list: mu.cc
 .build/global_declarations_list: .build/global_definitions_list
 	@grep ';' .build/global_definitions_list |perl -pwe 's/[=(].*/;/' |perl -pwe 's/^[^\/# ]/extern $$&/' |perl -pwe 's/^extern extern /extern /' > .build/global_declarations_list
 
-.PHONY: all clean clena
+.PHONY: all redo clean clena
 
 clena: clean
 clean:
101' href='#n101'>101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166