summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugeniy Mikhailov <evgmik@gmail.com>2014-01-27 00:01:04 -0500
committerEugeniy Mikhailov <evgmik@gmail.com>2014-01-27 00:01:04 -0500
commited69cce3245861b603dc054a8f1d2e1b1a893142 (patch)
treea320fc330d537f312e46d6e8e8a8bccbaa95c2cd
parent9d9d4ece0c4be30f3f6b80148f7bac6fa4439278 (diff)
downloadmakefile_templates-ed69cce3245861b603dc054a8f1d2e1b1a893142.tar.gz
makefile_templates-ed69cce3245861b603dc054a8f1d2e1b1a893142.zip
added template for ps circuits to transform to pdf
-rw-r--r--circuit_eps.mk24
1 files changed, 24 insertions, 0 deletions
diff --git a/circuit_eps.mk b/circuit_eps.mk
new file mode 100644
index 0000000..34b9e19
--- /dev/null
+++ b/circuit_eps.mk
@@ -0,0 +1,24 @@
+# -*- make -*-
+
+CLEAN_TARGETS += clean_pdf_curcuit_targets
+REAL_CLEAN_TARGETS += real_clean_pdf_curcuit_targets
+
+curcuit_sourses = $(wildcard *.ps)
+pdf_curcuit = $(curcuit_sourses:%.ps=$(pics_destdir)/%.pdf)
+
+copy_pdf_compatible_files: dest_dir_curcuit $(pdf_curcuit)
+
+$(pdf_curcuit): $(pics_destdir)/%.pdf : %.ps
+ epstopdf --outfile=$@ $<
+
+clean_pdf_curcuit_targets:
+
+real_clean_pdf_curcuit_targets:
+ifneq ($(strip $(pdf_curcuit)),)
+ rm -f $(pdf_curcuit)
+endif
+
+dest_dir_curcuit:
+ $(INSTALL) -d -m 0755 $(pics_destdir)
+
+