summaryrefslogtreecommitdiff
path: root/pic_pdf_compatible.mk
diff options
context:
space:
mode:
authorEugeniy Mikhailov <evgmik@gmail.com>2014-01-15 22:00:50 -0500
committerEugeniy Mikhailov <evgmik@gmail.com>2014-01-15 22:02:13 -0500
commitc5b79fc8b83f298da56e2f24b830babc1ce2e514 (patch)
treef9e40659607137b071c34e6d516f67be4dd7d260 /pic_pdf_compatible.mk
parent1ea23bda1842020eed05dadcd71ed744e1d64454 (diff)
downloadmakefile_templates-c5b79fc8b83f298da56e2f24b830babc1ce2e514.tar.gz
makefile_templates-c5b79fc8b83f298da56e2f24b830babc1ce2e514.zip
added some helper make file for svg and raw pdf sources
Diffstat (limited to 'pic_pdf_compatible.mk')
-rw-r--r--pic_pdf_compatible.mk27
1 files changed, 27 insertions, 0 deletions
diff --git a/pic_pdf_compatible.mk b/pic_pdf_compatible.mk
new file mode 100644
index 0000000..259b567
--- /dev/null
+++ b/pic_pdf_compatible.mk
@@ -0,0 +1,27 @@
+# -*- make -*-
+
+CLEAN_TARGETS += clean_pdf_compatible
+REAL_CLEAN_TARGETS += real_clean_pdf_compatible
+
+pdf_compatible_files = \
+ $(wildcard *.pdf) \
+ $(wildcard *.png) \
+ $(wildcard *.jpg)
+
+copied_pdf_compatible_files = $(pdf_compatible_files:%=$(pics_destdir)/%)
+
+copy_pdf_compatible_files: dest_dir_pdf_compatible $(copied_pdf_compatible_files)
+
+$(copied_pdf_compatible_files): $(pics_destdir)/% : %
+ $(INSTALL) -m 0644 $< $@
+
+clean_pdf_compatible:
+
+real_clean_pdf_compatible:
+ifneq ($(strip $(copied_pdf_compatible_files)),)
+ rm -f $(copied_pdf_compatible_files)
+endif
+
+dest_dir_pdf_compatible:
+ $(INSTALL) -d -m 0755 $(pics_destdir)
+