From f49e9f740e5f370c0c9b1ba0ac343d6544d94534 Mon Sep 17 00:00:00 2001 From: Jake Bradford Date: Thu, 11 Jan 2024 14:36:09 +1000 Subject: [PATCH] fixed makefile so that `bin` directory is created if it does not exist --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 5e749d1..e9acc32 100644 --- a/Makefile +++ b/Makefile @@ -7,7 +7,12 @@ CFLAGS = -O3 -std=c++11 -fopenmp -mpopcnt # define any directories containing header files other than /usr/include INCLUDES = -Isrc/ISSL/include -all : isslScoreOfftargets isslCreateIndex +all : bin_check isslScoreOfftargets isslCreateIndex + +bin_check: + @if [ ! -d bin ]; then \ + mkdir bin; \ + fi isslScoreOfftargets : src/ISSL/isslScoreOfftargets.cpp $(CC) $(CFLAGS) $(INCLUDES) -o bin/$@ $^