Merge pull request #20 from nnadeau/patch-1
Using PHONY for non-file targets
This commit is contained in:
commit
0085cc04fa
7
Makefile
7
Makefile
|
|
@ -54,10 +54,13 @@ PDF_DEPENDENCIES = $(BASE_DEPENDENCIES)
|
||||||
# Basic actions
|
# Basic actions
|
||||||
####################################################################################################
|
####################################################################################################
|
||||||
|
|
||||||
|
.PHONY: all
|
||||||
all: book
|
all: book
|
||||||
|
|
||||||
|
.PHONY: book
|
||||||
book: epub html pdf docx
|
book: epub html pdf docx
|
||||||
|
|
||||||
|
.PHONY: clean
|
||||||
clean:
|
clean:
|
||||||
rm -r $(BUILD)
|
rm -r $(BUILD)
|
||||||
|
|
||||||
|
|
@ -65,12 +68,16 @@ clean:
|
||||||
# File builders
|
# File builders
|
||||||
####################################################################################################
|
####################################################################################################
|
||||||
|
|
||||||
|
.PHONY: epub
|
||||||
epub: $(BUILD)/epub/$(OUTPUT_FILENAME).epub
|
epub: $(BUILD)/epub/$(OUTPUT_FILENAME).epub
|
||||||
|
|
||||||
|
.PHONY: html
|
||||||
html: $(BUILD)/html/$(OUTPUT_FILENAME).html
|
html: $(BUILD)/html/$(OUTPUT_FILENAME).html
|
||||||
|
|
||||||
|
.PHONY: pdf
|
||||||
pdf: $(BUILD)/pdf/$(OUTPUT_FILENAME).pdf
|
pdf: $(BUILD)/pdf/$(OUTPUT_FILENAME).pdf
|
||||||
|
|
||||||
|
.PHONY: docx
|
||||||
docx: $(BUILD)/docx/$(OUTPUT_FILENAME).docx
|
docx: $(BUILD)/docx/$(OUTPUT_FILENAME).docx
|
||||||
|
|
||||||
$(BUILD)/epub/$(OUTPUT_FILENAME).epub: $(EPUB_DEPENDENCIES)
|
$(BUILD)/epub/$(OUTPUT_FILENAME).epub: $(EPUB_DEPENDENCIES)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue