summaryrefslogtreecommitdiff
path: root/raw.mk
blob: 171ad626e76a12c1ccdf10b421c527d7b3308cd8 (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) -D -m 0644 '$<' '$@'
endif