aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorCalvin Morrison <mutantturkey@gmail.com>2014-01-17 14:30:13 -0500
committerCalvin Morrison <mutantturkey@gmail.com>2014-01-17 14:30:13 -0500
commit51dcb562cf591ce2c5b36cbffb7c717e1e174c9a (patch)
tree6c3985a2daa35533b01f5c95faeb011cc60559b9 /Makefile
parentb09eecbec7e7cca1c133ba5923f55713cf7a78cf (diff)
add mkdir -p bin for our makefile
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index d5e673a..38b2b3d 100644
--- a/Makefile
+++ b/Makefile
@@ -4,8 +4,10 @@ CFLAGS = -O3 -s -mtune=native -Wall -DVERSION=$(VERSION) -Wextra
SRC = src
BIN = bin
-all: $(BIN)/strstream $(BIN)/melting_range $(BIN)/strstreamone
+all: output_dir $(BIN)/strstream $(BIN)/melting_range $(BIN)/strstreamone
+output_dir:
+ mkdir -p $(BIN)
$(BIN)/strstream: $(SRC)/strstream.c
$(CC) $(SRC)/strstream.c -o $(BIN)/strstream $(CLIBS) $(CFLAGS)
$(BIN)/strstreamone: $(SRC)/strstreamone.c