Fix PDF doc export Makefile to handle files generated on error

This commit is contained in:
Benjamin Renard 2019-05-21 12:15:15 +02:00
parent d2951ed74f
commit ca900cdcce
2 changed files with 10 additions and 4 deletions

View file

@ -1 +1,6 @@
*.aux
*.log
*.out
*.pdf
*.tex
*.tmp

View file

@ -1,13 +1,14 @@
DOCBOOK_FILE=../../LdapSaisie.docbook
JW=jw
PDF_FILE=LdapSaisie.pdf
BASE_FILENAME=LdapSaisie
PDF_FILE=$(BASE_FILENAME).pdf
all: pdf
pdf: LdapSaisie.pdf
pdf: $(PDF_FILE)
LdapSaisie.pdf: $(DOCBOOK_FILE)
SP_ENCODING=XML $(JW) -f docbook -b pdf "$(DOCBOOK_FILE)"
clean:
rm -f $(PDF_FILE)
rm -f $(BASE_FILENAME).*