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