Use 'mkdir -p' to create parent directories as needed. Prevents this error:
authordooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Sat, 10 Mar 2007 03:10:35 +0000 (03:10 +0000)
committerdooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Sat, 10 Mar 2007 03:10:35 +0000 (03:10 +0000)
  $ make multiple-html
  mkdir result/en/out-htmls
  mkdir: cannot create directory `result/en/out-htmls': No such file or directory

git-svn-id: http://svn.voria.com/code@282 1f10aa63-cdf2-0310-b900-c93c546f37ac

synfig-docs/trunk/Makefile

index 7881739..c33173a 100644 (file)
@@ -109,7 +109,7 @@ ${INDEX}.sgml.m: HTML.index.m
        perl -S collateindex.pl -o ${SGMLDIR}/${INDEX}.sgml.m ${SGMLDIR}/HTML.index.m
 
 ${MULTIPLEHTMLDIR}:
-       mkdir ${MULTIPLEHTMLDIR}
+       mkdir -p ${MULTIPLEHTMLDIR}
 
 cpfilesmultiple: ${PNGMULTIPLE} ${OTHERMULTIPLE}
 
@@ -132,7 +132,7 @@ ${PSDIR}/%.eps: ${PNGDIR}/%.png ${PSDIR}
        convert $< $@
 
 ${PSDIR}:
-       mkdir ${PSDIR}
+       mkdir -p ${PSDIR}
 
 #Rules needed for generating the pdf file
 
@@ -147,7 +147,7 @@ ${PDFDIR}/${DOC}.pdf: ${PDFDIR} ${INDEX}.sgml.m
        cd ..
 
 ${PDFDIR}:
-       mkdir ${PDFDIR}
+       mkdir -p ${PDFDIR}
 
 #Some additional and standard tags
 init: