Skip to content

Commit

Permalink
"make clean" should not fail if no PDFs exist
Browse files Browse the repository at this point in the history
  • Loading branch information
dkg committed Jan 3, 2017
1 parent 2898e49 commit 89a5bf3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions doc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ SOURCEDIR = .
IMAGEDIRS = images
# SVG to PDF conversion
SVG2PDF = inkscape
SVG2PDF_FLAGS =
SVG2PDF_FLAGS =

.PHONY: help
help:
Expand Down Expand Up @@ -49,10 +49,10 @@ help:
@echo " coverage to run coverage check of the documentation (if enabled)"
@echo " dummy to check syntax errors of document sources"

#
#
# Pattern rule for converting SVG to PDF
%.pdf : %.svg
$(SVG2PDF) -f $< -A $@
$(SVG2PDF) -f $< -A $@
# Build a list of SVG files to convert to PDFs
PDFs := $(foreach dir, $(IMAGEDIRS), $(patsubst %.svg,%.pdf,$(wildcard $(SOURCEDIR)/$(dir)/*.svg)))
# Make a rule to build the PDFs
Expand All @@ -61,7 +61,7 @@ images: $(PDFs)
.PHONY: clean
clean:
rm -rf $(BUILDDIR)/*
rm $(PDFs)
rm -f $(PDFs)

.PHONY: html
html:
Expand Down

0 comments on commit 89a5bf3

Please sign in to comment.