# -*- make -*- CLEAN_TARGETS += clean_pdf_svg_targets REAL_CLEAN_TARGETS += real_clean_pdf_svg_targets destination_dirs += $(pics_destdir) svg_sources = $(wildcard *.svg) pdf_svg = $(svg_sources:%.svg=$(pics_destdir)/%.pdf) copy_pdf_compatible_files: $(pdf_svg) $(pdf_svg): $(pics_destdir)/%.pdf : %.svg | $(pics_destdir) inkscape --export-pdf=$@ $< clean_pdf_svg_targets: real_clean_pdf_svg_targets: ifneq ($(strip $(pdf_svg)),) rm -f $(pdf_svg) endif