diff options
author | Eugeniy Mikhailov <evgmik@gmail.com> | 2014-04-08 21:14:52 -0400 |
---|---|---|
committer | Eugeniy Mikhailov <evgmik@gmail.com> | 2014-04-08 21:14:52 -0400 |
commit | d235b585b7cf461464fdc400aa4f4a7ac2bd6945 (patch) | |
tree | 5d281fe1de06e0854e77bd3a99b36f763b1bffba /eps.mk | |
parent | 9c38cb4f40a7644322d1624c6f303f04d3a7b826 (diff) | |
download | makefile_templates-d235b585b7cf461464fdc400aa4f4a7ac2bd6945.tar.gz makefile_templates-d235b585b7cf461464fdc400aa4f4a7ac2bd6945.zip |
added eps to pdf makefile
Diffstat (limited to 'eps.mk')
-rw-r--r-- | eps.mk | 23 |
1 files changed, 23 insertions, 0 deletions
@@ -0,0 +1,23 @@ +# -*- make -*- + +CLEAN_TARGETS += +REAL_CLEAN_TARGETS += real_clean_eps_pdf_targets + +eps_sources = $(wildcard *.eps) +eps_pdf_targets = $(eps_sources:%.eps=$(pics_destdir)/%.pdf) + + +copy_eps_pdf_targets: dest_dir_eps_pdf $(eps_pdf_targets) + +$(eps_pdf_targets): $(pics_destdir)/%.pdf : %.eps + epstopdf --autorotate=All --outfile=$@ $< + +real_clean_eps_pdf_targets: +ifneq ($(strip $(eps_pdf_targets)),) + rm -f $(eps_pdf_targets) +endif + +dest_dir_eps_pdf: + $(INSTALL) -d -m 0755 $(pics_destdir) + +.INTERMEDIATE: |