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: .[^as.]*/install $(if $(all),*/install) _always ;
|
34
|
|
35
|
##### Import logs
|
36
|
|
37
|
download-logs: _always
|
38
|
swap=1 $(bin)/sync_upload --include="/**/" --include="/**/logs/*.log.sql" \
|
39
|
--exclude="**"
|
40
|
|
41
|
|
42
|
include ../lib/forwarding.Makefile
|