summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Ball <nullspoon@iohq.net>2016-01-28 23:15:37 -0700
committerAaron Ball <nullspoon@iohq.net>2016-01-28 23:15:37 -0700
commita8c22c6a4fc58b976efffdc146351307f117fba4 (patch)
tree135543c92b15fb3bcbe4f529ba6efccf9a722cf7
parent2b3d32c189ffa093eaa313f2f42c2735ef98e20a (diff)
downloadctimer-master.tar.gz
ctimer-master.tar.xz
Makefile creates obj directoryHEADmaster
Wasn't creating obj directory if it didn't exist, which would cause a new compile to fail. This patch has the Makefile create the obj directory if it doesn't yet exist.
-rw-r--r--Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index cd4ee94..06f7be0 100644
--- a/Makefile
+++ b/Makefile
@@ -2,6 +2,7 @@ out=ctimer
warn = -Wall -Wpedantic
all:
+ if [[ ! -d obj ]]; then mkdir obj; fi
cc $(dbg) $(warn) -c src/ctime.c -o obj/ctime.o
cc $(dbg) $(warn) src/main.c obj/* -o $(out)

Generated by cgit