瀏覽代碼

Makefile: for pdf rendering:
- fix the required disk space for LFS-Bootscripts (use lfs-full instead of lfs-html2)
- copy the images to RENDERTMP so that they appear in notes/warnings et al

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@11385 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

Pierre Labastie 6 年之前
父節點
當前提交
855fda1e56
共有 1 個文件被更改,包括 4 次插入5 次删除
  1. 4 5
      Makefile

+ 4 - 5
Makefile

@@ -71,7 +71,7 @@ pdf: validate
                 --stringparam profile.condition pdf \
                 --output $(RENDERTMP)/lfs-pdf.xml   \
                 stylesheets/lfs-xsl/profile.xsl     \
-                $(RENDERTMP)/lfs-html2.xml
+                $(RENDERTMP)/lfs-full.xml
 
 	@echo "Generating FO file..."
 	$(Q)xsltproc --nonet                           \
@@ -84,11 +84,10 @@ pdf: validate
 	$(Q)bash pdf-fixups.sh $(RENDERTMP)/lfs-pdf.fo
 
 	@echo "Generating PDF file..."
-	$(Q)mkdir -p $(BASEDIR)
+	$(Q)mkdir -p $(RENDERTMP)/images
+	$(Q)cp images/*.png $(RENDERTMP)/images
 
-	@echo "Copying images to destination..."
-	$(Q)mkdir -p $(BASEDIR)/images
-	$(Q)cp images/*.png $(BASEDIR)/images
+	$(Q)mkdir -p $(BASEDIR)
 
 	$(Q)fop -q  $(RENDERTMP)/lfs-pdf.fo $(BASEDIR)/$(PDF_OUTPUT) 2>fop.log
 	@echo "$(BASEDIR)/$(PDF_OUTPUT) created"