Added clean option that removes the staging dir and the output file

This commit is contained in:
Günther Hutter 2024-02-29 08:28:52 +01:00
parent 1ee2fb447e
commit 5689034008

View File

@ -25,7 +25,7 @@ help:
@echo ' ' @echo ' '
@echo 'Änderungswünsche werden ausschließlich via issue und pullrequest ' @echo 'Änderungswünsche werden ausschließlich via issue und pullrequest '
@echo 'Usage: ' @echo 'Usage: '
@echo ' make pdf generate a PDF file ' @echo ' make pdf generate a PDF file '
@echo ' make spellcheck checks the output for misspelled words ' @echo ' make spellcheck checks the output for misspelled words '
@echo ' ' @echo ' '
@echo ' ' @echo ' '
@ -98,5 +98,12 @@ spellcheck: build-stage do-spellcheck remove-stage
pdf: build-stage compile-pdf remove-stage pdf: build-stage compile-pdf remove-stage
clean:
# Remove the staging directory
@rm -rf $(STAGINGDIR)
# And remove the current result
@rm -f $(OUTPUTFILE)
# Special Targets # Special Targets
.PHONY: help pdf clean .PHONY: help pdf clean