summaryrefslogtreecommitdiff
path: root/raw.mk
blob: 7ed57618c90a0a99b38ac2b99be32eba0c510f51 (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

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

clean_raw:

real_clean_raw:

dest_dir_raw: 
	$(INSTALL) -d -m 0755 $(dest_dir)

install_raw: dest_dir_raw $(raw_dest_targets)

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