1
|
include ../lib/common.Makefile
|
2
|
|
3
|
subMake += --makefile=../input.Makefile
|
4
|
|
5
|
|
6
|
##### Configuration
|
7
|
|
8
|
# vars
|
9
|
all ?=
|
10
|
|
11
|
|
12
|
# Paths
|
13
|
bin := ../bin
|
14
|
|
15
|
##### SVN
|
16
|
|
17
|
# Adds a new datasource
|
18
|
# Must come before $(subdir)% to override it
|
19
|
%/add: _always
|
20
|
$(call addDir,$*)
|
21
|
$(subMake)
|
22
|
|
23
|
##### Input data
|
24
|
|
25
|
upload: _always
|
26
|
$(bin)/sync_upload './**'
|
27
|
download: _always
|
28
|
swap=1 $(bin)/sync_upload --exclude='*.log.sql*' \
|
29
|
$(if $(all),'./**','.[^as.]*/**')
|
30
|
|
31
|
##### install
|
32
|
|
33
|
install: $(call wildcard+suffix,.[^as.]*/,install) \
|
34
|
$(if $(all),$(call wildcard+suffix,*/,install)) _always ;
|
35
|
|
36
|
##### Import logs
|
37
|
|
38
|
download-logs: _always
|
39
|
swap=1 $(bin)/sync_upload --include="/**/" --include="/**/logs/*.log.sql" \
|
40
|
--exclude="**"
|
41
|
|
42
|
|
43
|
include ../lib/forwarding.Makefile
|