Merge pull request #20 from nnadeau/patch-1

Using PHONY for non-file targets
This commit is contained in:
Wikiti 2021-06-26 18:15:19 +01:00 committed by GitHub
commit 0085cc04fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

View File

@ -54,10 +54,13 @@ PDF_DEPENDENCIES = $(BASE_DEPENDENCIES)
# Basic actions
####################################################################################################
.PHONY: all
all: book
.PHONY: book
book: epub html pdf docx
.PHONY: clean
clean:
rm -r $(BUILD)
@ -65,12 +68,16 @@ clean:
# File builders
####################################################################################################
.PHONY: epub
epub: $(BUILD)/epub/$(OUTPUT_FILENAME).epub
.PHONY: html
html: $(BUILD)/html/$(OUTPUT_FILENAME).html
.PHONY: pdf
pdf: $(BUILD)/pdf/$(OUTPUT_FILENAME).pdf
.PHONY: docx
docx: $(BUILD)/docx/$(OUTPUT_FILENAME).docx
$(BUILD)/epub/$(OUTPUT_FILENAME).epub: $(EPUB_DEPENDENCIES)