From d235b585b7cf461464fdc400aa4f4a7ac2bd6945 Mon Sep 17 00:00:00 2001 From: Eugeniy Mikhailov Date: Tue, 8 Apr 2014 21:14:52 -0400 Subject: added eps to pdf makefile --- eps.mk | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 eps.mk diff --git a/eps.mk b/eps.mk new file mode 100644 index 0000000..137cfd5 --- /dev/null +++ b/eps.mk @@ -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: -- cgit v1.2.3