-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathMakefile
53 lines (39 loc) · 1.13 KB
/
Makefile
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
DIT_NAME=$(shell ddit targetname)
BASENAME=$(shell ddit targetname --basename)
VERSION=$(shell ddit ditversion)
TAG_NAME=${BASENAME}-v${VERSION}
NAME=${BASENAME}-${VERSION}
operator_bot := target/ow-board-operator-bot-$(VERSION).tar.gz
ui := target/ow-board-ui-$(VERSION).zip
.PHONY: package publish
all: package
publish: package
ddit release
package: ${DIT_NAME}
${DIT_NAME}: dabl-meta.yaml $(operator_bot) $(ui)
ddit build \
--subdeployment $(operator_bot) $(ui) backend/released/danban-3.2.0.dar
.PHONY: run
run: package
honcho start
.PHONY: all
$(operator_bot):
cd python/operator; DDIT_VERSION=$(VERSION) pipenv run python setup.py sdist
rm -fr python/operator/openwork_board_operator_bot.egg-info
mkdir -p $(@D)
mv python/operator/dist/openwork-board-operator-bot-$(VERSION).tar.gz $@
rm -r python/operator/dist
$(ui):
cd client; \
npm install; \
npm run build; \
zip -r ow-board-ui-$(VERSION).zip build
mkdir -p $(@D)
mv client/ow-board-ui-$(VERSION).zip $@
.PHONY: clean
clean:
rm -fr python/operator/openwork_board_operator_bot.egg-info \
python/operator/dist \
target/* \
client/build \
${DIT_NAME}