-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
46 lines (34 loc) · 959 Bytes
/
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
PROJECT=advisor-client
VERSION=0.4.4
BASEDIR=$(shell pwd)
BUILD=$(BASEDIR)/build
DST=$(BUILD)/client
all:
echo "Usage: make dist"
clean:
rm -rf ./build
build: dist debianize
dist:
mkdir -p $(DST) $(DST)/$(LCL) $(DST)/uis $(DST)/dialogs
cp ./src/*.py ./src/*.css $(DST)/
cp ./src/uis/*.ui $(DST)/uis/
cp ./src/dialogs/*.py $(DST)/dialogs/
cp ./src/advisor-client_*.qm $(DST)/
cp ./package/* $(BUILD)/
rm $(DST)/manager_test.py
cd $(BUILD); python setup.py sdist; cd -
debianize:
cd $(BASEDIR)/build/dist; \
cp $(PROJECT)-$(VERSION).tar.gz $(PROJECT)_$(VERSION).orig.tar.gz; \
tar xzf $(PROJECT)-$(VERSION).tar.gz; \
cd -
dch -i
cp -r $(BASEDIR)/debian $(BASEDIR)/build/dist/$(PROJECT)-$(VERSION)/
cd $(BASEDIR)/build/dist/$(PROJECT)-$(VERSION); \
debuild -k4A43B8D0; \
cd -
locale:
pylupdate4 -noobsolete advisor-client.pro
linguist advisor-client_ru_RU.ts
lrelease advisor-client_ru_RU.ts
mv advisor-client_ru_RU.qm src/