From 039f0a7b2716bfa1cfebc4e258fd2acbcd9c3964 Mon Sep 17 00:00:00 2001 From: JCGoran Date: Tue, 19 Oct 2021 10:38:18 +0200 Subject: [PATCH] Added support in makefile for paths with spaces --- Makefile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 9e4a8a779..63f1161ae 100644 --- a/Makefile +++ b/Makefile @@ -6,7 +6,7 @@ MDIR := $(shell pwd) WRKDIR = $(MDIR)/build .base: - if ! [ -e $(WRKDIR) ]; then mkdir $(WRKDIR) ; mkdir $(WRKDIR)/lib; fi; + if ! [ -e "$(WRKDIR)" ]; then mkdir "$(WRKDIR)" ; mkdir "$(WRKDIR)/lib"; fi; touch build/.base vpath %.c source:tools:main:test @@ -89,7 +89,7 @@ HEADERFILES += $(wildcard ./$(HYREC)/*.h) endif %.o: %.c .base $(HEADERFILES) - cd $(WRKDIR);$(CC) $(OPTFLAG) $(OMPFLAG) $(CCFLAG) $(INCLUDES) -c ../$< -o $*.o + cd "$(WRKDIR)";$(CC) $(OPTFLAG) $(OMPFLAG) $(CCFLAG) $(INCLUDES) -c ../$< -o $*.o TOOLS = growTable.o dei_rkck.o sparse.o evolver_rkck.o evolver_ndf15.o arrays.o parser.o quadrature.o hyperspherical.o common.o trigonometric_integrals.o @@ -199,8 +199,8 @@ endif rm python/autosetup.py clean: .base - rm -rf $(WRKDIR); + rm -rf "$(WRKDIR)"; rm -f libclass.a - rm -f $(MDIR)/python/classy.c - rm -rf $(MDIR)/python/build + rm -f "$(MDIR)/python/classy.c" + rm -rf "$(MDIR)/python/build" rm -f python/autosetup.py