diff options
author | Eugeniy Mikhailov <evgmik@gmail.com> | 2014-01-15 22:00:50 -0500 |
---|---|---|
committer | Eugeniy Mikhailov <evgmik@gmail.com> | 2014-01-15 22:02:13 -0500 |
commit | c5b79fc8b83f298da56e2f24b830babc1ce2e514 (patch) | |
tree | f9e40659607137b071c34e6d516f67be4dd7d260 /pic_svg.mk | |
parent | 1ea23bda1842020eed05dadcd71ed744e1d64454 (diff) | |
download | makefile_templates-c5b79fc8b83f298da56e2f24b830babc1ce2e514.tar.gz makefile_templates-c5b79fc8b83f298da56e2f24b830babc1ce2e514.zip |
added some helper make file for svg and raw pdf sources
Diffstat (limited to 'pic_svg.mk')
-rw-r--r-- | pic_svg.mk | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/pic_svg.mk b/pic_svg.mk new file mode 100644 index 0000000..cfb5053 --- /dev/null +++ b/pic_svg.mk @@ -0,0 +1,23 @@ +# -*- make -*- + +CLEAN_TARGETS += clean_pdf_svg_targets +REAL_CLEAN_TARGETS += real_clean_pdf_svg_targets + +svg_sources = $(wildcard *.svg) +pdf_svg = $(svg_sources:%.svg=$(pics_destdir)/%.pdf) + +copy_pdf_compatible_files: dest_dir_svg $(pdf_svg) + +$(pdf_svg): $(pics_destdir)/%.pdf : %.svg + inkscape --export-pdf=$@ $< + +clean_pdf_svg_targets: + +real_clean_pdf_svg_targets: +ifneq ($(strip $(pdf_svg)),) + rm -f $(pdf_svg) +endif + +dest_dir_svg: + $(INSTALL) -d -m 0755 $(pics_destdir) + |