Browse Source

Fop requires $BASEDIR be created before generating the PDF

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@8206 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Manuel Canales Esparcia 18 years ago
parent
commit
c948b40772
1 changed files with 3 additions and 0 deletions
  1. 3 0
      Makefile

+ 3 - 0
Makefile

@@ -51,6 +51,9 @@ pdf: validxml
 	$(Q)sed -i -e 's/span="inherit"/span="all"/' /tmp/lfs-pdf.fo
 
 	@echo "Generating PDF file..."
+	$(Q)if [ ! -e $(BASEDIR) ]; then \
+	  mkdir -p $(BASEDIR); \
+	fi;
 	$(Q)fop /tmp/lfs-pdf.fo $(BASEDIR)/$(PDF_OUTPUT)
 
 nochunks: validxml profile-html