modificar makefile y archivos compilados (excepto pdf)

This commit is contained in:
Victorhck 2022-12-13 19:35:48 +01:00
parent 4defc7767a
commit 79b19b95a6
3 changed files with 3 additions and 5 deletions

View File

@ -28,11 +28,11 @@ pdf: $(BUILD)/pdf/$(BOOKNAME).pdf
$(BUILD)/epub/$(BOOKNAME).epub: $(TITLE) $(CHAPTERS) $(METADATA_YAML) $(BUILD)/epub/$(BOOKNAME).epub: $(TITLE) $(CHAPTERS) $(METADATA_YAML)
mkdir -p $(BUILD)/epub mkdir -p $(BUILD)/epub
pandoc -s $(TOC) --top-level-division --number-offset=0 -S --epub-metadata=$(METADATA_XML) --epub-cover-image=$(COVER_IMAGE) -o $@ $^ pandoc -s $(TOC) --top-level-division=chapter --number-offset=0 --epub-metadata=$(METADATA_XML) --epub-cover-image=$(COVER_IMAGE) -o $@ $^
$(BUILD)/html/$(BOOKNAME).html: $(CHAPTERS) $(METADATA_YAML) $(BUILD)/html/$(BOOKNAME).html: $(CHAPTERS) $(METADATA_YAML)
mkdir -p $(BUILD)/html mkdir -p $(BUILD)/html
pandoc -s $(TOC) --top-level-division --number-offset=0 --standalone --to=html5 --css=css/$(BOOKNAME).css -o $@ $^ pandoc -s $(TOC) --top-level-division=chapter --number-offset=0 --standalone --to=html5 --css=css/$(BOOKNAME).css -o $@ $^
$(BUILD)/html/fonts/%: fonts/% $(BUILD)/html/fonts/%: fonts/%
mkdir -p $(BUILD)/html/fonts mkdir -p $(BUILD)/html/fonts
@ -44,7 +44,6 @@ $(BUILD)/html/css/%: css/%
$(BUILD)/pdf/$(BOOKNAME).pdf: $(CHAPTERS) $(METADATA_YAML) $(BUILD)/pdf/$(BOOKNAME).pdf: $(CHAPTERS) $(METADATA_YAML)
mkdir -p $(BUILD)/pdf mkdir -p $(BUILD)/pdf
# pandoc $(TOC) --chapters --number-offset=0 --latex-engine=pdflatex -V documentclass=$(LATEX_CLASS) -V papersize=6x9 -o $@ $^ pandoc -s $(TOC) --top-level-division=chapter --number-offset=0 --template=Pandoc/templates/cs-6x9-pdf.latex --pdf-engine=xelatex -o $@ $^
pandoc -s $(TOC) --chapters --number-offset=0 --template=Pandoc/templates/cs-6x9-pdf.latex --latex-engine=xelatex -o $@ $^
.PHONY: all book clean epub html fonts css pdf .PHONY: all book clean epub html fonts css pdf

View File

@ -2,7 +2,6 @@
title: 'El programador mediocre' title: 'El programador mediocre'
author: author:
- Craig Maloney - Craig Maloney
- Victorhck
contributors: contributors:
- artist: David Revoy - artist: David Revoy
editor: Sharon Maloney editor: Sharon Maloney