blob: 9de0fb9e7b93cd93bf385569666cfa7c309318df (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
.PHONY: all
all: directories copyrepo
directories: ${BUTIDO_RELEASES} ${BUTIDO_STAGING} ${BUTIDO_SOURCE_CACHE} ${BUTIDO_LOG_DIR} ${BUTIDO_REPO}
# to start a webserver for serving the source files.
webserver: ./sources ${BUTIDO_SOURCE_CACHE}
devd -A 127.0.0.1 -p 8180 -T ./sources
copyrepo: ${BUTIDO_REPO} check-env
cp -rv ./repo/* ${BUTIDO_REPO}/
cd ${BUTIDO_REPO}/ && git init && git add . && git commit -m init
${BUTIDO_RELEASES}: check-env
mkdir -p "${BUTIDO_RELEASES}"
${BUTIDO_STAGING}: check-env
mkdir -p "${BUTIDO_STAGING}"
${BUTIDO_SOURCE_CACHE}: check-env
mkdir -p "${BUTIDO_SOURCE_CACHE}"
${BUTIDO_LOG_DIR}: check-env
mkdir -p "${BUTIDO_LOG_DIR}"
${BUTIDO_REPO}: check-env
mkdir -p "${BUTIDO_REPO}"
check-env:
ifndef BUTIDO_RELEASES
$(error BUTIDO_RELEASES is undefined)
endif
ifndef BUTIDO_STAGING
$(error BUTIDO_STAGING is undefined)
endif
ifndef BUTIDO_SOURCE_CACHE
$(error BUTIDO_SOURCE_CACHE is undefined)
endif
ifndef BUTIDO_LOG_DIR
$(error BUTIDO_LOG_DIR is undefined)
endif
ifndef BUTIDO_REPO
$(error BUTIDO_REPO is undefined)
endif
ifndef BUTIDO_DATABASE_HOST
$(error BUTIDO_DATABASE_HOST is undefined)
endif
ifndef BUTIDO_DATABASE_PORT
$(error BUTIDO_DATABASE_PORT is undefined)
endif
ifndef BUTIDO_DATABASE_USER
$(error BUTIDO_DATABASE_USER is undefined)
endif
ifndef BUTIDO_DATABASE_PASSWORD
$(error BUTIDO_DATABASE_PASSWORD is undefined)
endif
ifndef BUTIDO_DATABASE_NAME
$(error BUTIDO_DATABASE_NAME is undefined)
endif
|