summaryrefslogtreecommitdiff
path: root/eps.mk
diff options
context:
space:
mode:
authorEugeniy Mikhailov <evgmik@gmail.com>2014-04-08 21:14:52 -0400
committerEugeniy Mikhailov <evgmik@gmail.com>2014-04-08 21:14:52 -0400
commitd235b585b7cf461464fdc400aa4f4a7ac2bd6945 (patch)
tree5d281fe1de06e0854e77bd3a99b36f763b1bffba /eps.mk
parent9c38cb4f40a7644322d1624c6f303f04d3a7b826 (diff)
downloadmakefile_templates-d235b585b7cf461464fdc400aa4f4a7ac2bd6945.tar.gz
makefile_templates-d235b585b7cf461464fdc400aa4f4a7ac2bd6945.zip
added eps to pdf makefile
Diffstat (limited to 'eps.mk')
-rw-r--r--eps.mk23
1 files changed, 23 insertions, 0 deletions
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: