Revision 1594
Added by Aaron Marcuse-Kubitza almost 13 years ago
Makefile | ||
---|---|---|
9 | 9 |
# input.Makefile path is relative to subdir |
10 | 10 |
|
11 | 11 |
# SVN |
12 |
svnMkdir = $(if $(wildcard $(1)/),,svn mkdir $(1))
|
|
12 |
addDir = $(if $(wildcard $(1)/),svn add --depth=empty $(1),svn mkdir $(1))
|
|
13 | 13 |
|
14 | 14 |
##### General targets |
15 | 15 |
|
... | ... | |
25 | 25 |
##### SVN |
26 | 26 |
|
27 | 27 |
# Adds a new datasource |
28 |
define add |
|
29 |
$(call svnMkdir,$*) |
|
30 |
$(call svnMkdir,$*/src) |
|
31 |
$(call svnMkdir,$*/maps) |
|
32 |
$(call svnMkdir,$*/verify) |
|
33 |
$(call svnMkdir,$*/test) |
|
34 |
$(MAKE) $*/svn_props |
|
35 |
endef |
|
36 |
|
|
37 | 28 |
# Must come before $(subdir)% to override it |
38 |
%/-add: _always # to re-add existing dirs |
|
39 |
$(add) |
|
40 |
%-add: _always |
|
41 |
$(add) |
|
29 |
%/add: _always |
|
30 |
$(call addDir,$*) |
|
31 |
$(subMake) |
|
42 | 32 |
|
43 | 33 |
##### Subdir forwarding |
44 | 34 |
|
Also available in: Unified diff
input.Makefile: Moved log and trace files to new import subdir. Moved subdir-adding code from inputs/Makefile to input.Makefile.