aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2016-05-07 19:50:16 -0400
committerJesse Luehrs <doy@tozt.net>2016-05-07 19:50:16 -0400
commit880762a9b7c24809cfcc20db54fc11eafe161dec (patch)
tree05c53cbd92ea6ccafd121030ec111bea54b8e5c9
parent9c891a80c4dc3a15a2d41bfb247a200e645e5f67 (diff)
downloadrunes-880762a9b7c24809cfcc20db54fc11eafe161dec.tar.gz
runes-880762a9b7c24809cfcc20db54fc11eafe161dec.zip
add a `make release` target
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index edcbfa3..7b2cc28 100644
--- a/Makefile
+++ b/Makefile
@@ -34,6 +34,11 @@ MAKEDEPEND = $(CC) $(ALLCFLAGS) -M -MP -MT '$@ $(@:$(BUILD)%.o=$(BUILD).%.d)'
all: $(OUT) $(DOUT) $(COUT) ## Build all of the targets
+release: ## Build optimized binaries
+ $(MAKE) clean
+ $(MAKE) OPT=-O2
+ strip $(OUT) $(DOUT) $(COUT)
+
run: $(OUT) ## Build and run the standalone runes terminal
@./$(OUT)