From a8c22c6a4fc58b976efffdc146351307f117fba4 Mon Sep 17 00:00:00 2001 From: Aaron Ball Date: Thu, 28 Jan 2016 23:15:37 -0700 Subject: Makefile creates obj directory 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. --- Makefile | 1 + 1 file changed, 1 insertion(+) 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) -- cgit v1.2.3