diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2016-09-12 10:33:15 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2016-09-12 10:33:15 -0700 |
commit | e309b9e82ded3ece3985a214cbd432b45de1ba4d (patch) | |
tree | 80213fbd2f093e34eaad1d42edbf58dc6b6e05b2 /makefile | |
parent | 59e47aca14ce352a1814953df4be220406c94747 (diff) | |
download | mu-e309b9e82ded3ece3985a214cbd432b45de1ba4d.tar.gz |
3342
Diffstat (limited to 'makefile')
-rw-r--r-- | makefile | 9 |
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: |