summaryrefslogtreecommitdiff
path: root/raw.mk
blob: d3688c32add250ecafafe81d77da60b22a7379bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# -*- make -*-
# (C) 2013 by Eugeniy Mikhailov, <evgmik@gmail.com>

CLEAN_TARGETS      += clean_raw
REAL_CLEAN_TARGETS += real_clean_raw

dest_dir_raw ?= $(dest_dir)
destination_dirs += $(dest_dir_raw)

raw_dest_targets = $(raw_files:%=$(dest_dir_raw)/%)

clean_raw:

real_clean_raw:

install_raw: $(raw_dest_targets)

$(raw_dest_targets): $(dest_dir_raw)/% : % | $(dest_dir_raw)
ifneq ($(strip $(raw_files)),)
	$(INSTALL) -m 0644 '$<' '$@'
endif