Project

General

Profile

1 14817 aaronmk
include ../lib/common.Makefile
2
3
subMake += --makefile=../input.Makefile
4
5
6 14896 aaronmk
##### Configuration
7
8
# vars
9
all ?=
10
11
12 14817 aaronmk
# 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 14897 aaronmk
	swap=1 $(bin)/sync_upload --exclude='*.log.sql*' \
29
$(if $(all),'./**','.[^as.]*/**')
30 14817 aaronmk
31
##### install
32
33 14900 aaronmk
install: $(call wildcard+suffix,.[^as.]*/,install) \
34
$(if $(all),$(call wildcard+suffix,*/,install)) _always ;
35 14817 aaronmk
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