summaryrefslogtreecommitdiff
path: root/pic_pdf_compatible.mk
blob: 6bd29ff546f324ef9546f86492aa4f0a20754d03 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# -*- make -*-

CLEAN_TARGETS      += clean_pdf_compatible
REAL_CLEAN_TARGETS += real_clean_pdf_compatible

destination_dirs += $(pics_destdir)

pdf_compatible_files = \
		       $(wildcard *.pdf) \
		       $(wildcard *.png) \
		       $(wildcard *.jpg)

copied_pdf_compatible_files = $(pdf_compatible_files:%=$(pics_destdir)/%)

.PHONY: clean_pdf_compatible real_clean_pdf_compatible

copy_pdf_compatible_files: $(copied_pdf_compatible_files)

$(copied_pdf_compatible_files): $(pics_destdir)/% : % | $(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