From 05905b684d86e6456ae3dba01b44cdeb8690a0a6 Mon Sep 17 00:00:00 2001 From: "Nicholas Nadeau, Ph.D., P.Eng" Date: Wed, 23 Jun 2021 15:53:06 -0400 Subject: [PATCH] Using PHONY for non-file targets --- Makefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Makefile b/Makefile index b84bd6e..5c3996b 100644 --- a/Makefile +++ b/Makefile @@ -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)