From ffc974d3df0f5a065557df7eab7d9ae1d9513e9d Mon Sep 17 00:00:00 2001 From: Mike Swanson Date: Sat, 7 Sep 2019 23:56:44 -0700 Subject: [PATCH] textures: use "mkdir -p" when creating directories would error out otherwise if the directories already existed (eg, a non-clean build) --- lumps/textures/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lumps/textures/Makefile b/lumps/textures/Makefile index adc02920..b8632185 100644 --- a/lumps/textures/Makefile +++ b/lumps/textures/Makefile @@ -4,7 +4,7 @@ CPP=../../scripts/simplecpp all: phase1/texture1.lmp phase2/texture1.lmp freedm/texture1.lmp phase1/texture1.lmp: textures.cfg - @mkdir phase1 + @mkdir -p phase1 $(CPP) -DDOOM1_VERSIONS < textures.cfg | \ ./build-textures -compat_texture1=doom1/texture1.txt \ -compat_texture2=doom1/texture2.txt \ @@ -19,7 +19,7 @@ phase1/texture1.lmp: textures.cfg cp phase1/pnames.lmp ../fd1pname.lmp phase2/texture1.lmp: textures.cfg - @mkdir phase2 + @mkdir -p phase2 $(CPP) < textures.cfg | \ ./build-textures -compat_texture1=doom2/texture1.txt \ -compat_pnames=doom2/pnames.txt \ @@ -31,7 +31,7 @@ phase2/texture1.lmp: textures.cfg cp phase2/pnames.lmp ../fd2pname.lmp freedm/texture1.lmp: textures.cfg - @mkdir freedm + @mkdir -p freedm $(CPP) -DFREEDM < textures.cfg | \ ./build-textures -compat_texture1=doom2/texture1.txt \ -compat_pnames=doom2/pnames.txt \