From a4d24e574d078dac6b2e3e9046406e24935019f0 Mon Sep 17 00:00:00 2001 From: Eugeniy Mikhailov Date: Fri, 17 Apr 2015 16:33:37 -0400 Subject: improved destination handling --- pic_pdf_compatible.mk | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'pic_pdf_compatible.mk') diff --git a/pic_pdf_compatible.mk b/pic_pdf_compatible.mk index 259b567..6bd29ff 100644 --- a/pic_pdf_compatible.mk +++ b/pic_pdf_compatible.mk @@ -3,6 +3,8 @@ CLEAN_TARGETS += clean_pdf_compatible REAL_CLEAN_TARGETS += real_clean_pdf_compatible +destination_dirs += $(pics_destdir) + pdf_compatible_files = \ $(wildcard *.pdf) \ $(wildcard *.png) \ @@ -10,9 +12,11 @@ pdf_compatible_files = \ copied_pdf_compatible_files = $(pdf_compatible_files:%=$(pics_destdir)/%) -copy_pdf_compatible_files: dest_dir_pdf_compatible $(copied_pdf_compatible_files) +.PHONY: clean_pdf_compatible real_clean_pdf_compatible + +copy_pdf_compatible_files: $(copied_pdf_compatible_files) -$(copied_pdf_compatible_files): $(pics_destdir)/% : % +$(copied_pdf_compatible_files): $(pics_destdir)/% : % | $(pics_destdir) $(INSTALL) -m 0644 $< $@ clean_pdf_compatible: @@ -22,6 +26,3 @@ ifneq ($(strip $(copied_pdf_compatible_files)),) rm -f $(copied_pdf_compatible_files) endif -dest_dir_pdf_compatible: - $(INSTALL) -d -m 0755 $(pics_destdir) - -- cgit v1.2.3