Skip to content

Commit 04650d9

Browse files
committed
ci: Completing run-gtk2, run-qt5
1 parent 3ceed39 commit 04650d9

File tree

1 file changed

+23
-17
lines changed

1 file changed

+23
-17
lines changed

Makefile

Lines changed: 23 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ OPTS := -B --bm=Release
33
OPTSQT := --ws=qt5
44
LPI := heidisql.lpi
55

6-
BIN := out/heidisql
7-
BINGTK := out/gtk2/heidisql
8-
BINQT := out/qt5/heidisql
6+
BIN := ./out/heidisql
7+
BINGTK := ./out/gtk2/heidisql
8+
BINQT := ./out/qt5/heidisql
99

1010
# Make shell magic to get version from somewhere
1111
#VERSION := shell magic
@@ -30,9 +30,9 @@ all: clean tx-pull build-mo build-gtk2 build-qt5 deb-package tar-gtk2 tar-qt5
3030

3131
clean:
3232
@echo "=== Cleaning"
33-
@rm -rf bin/lib/x86_64-linux/*
34-
@rm -f out/gtk2/* out/qt5/*
35-
@rm -rf deb rpm tar dist
33+
@rm -rf ./bin/lib/x86_64-linux/*
34+
@rm -f ./out/gtk2/* ./out/qt5/*
35+
@rm -rf ./deb ./rpm ./tar ./dist
3636

3737
tx-push:
3838
@echo "=== Pushing to Transifex"
@@ -44,36 +44,42 @@ tx-pull:
4444

4545
copy-locale:
4646
@echo "=== Copying .mo from extra/locale to out/locale"
47-
@mkdir -p out/locale
48-
@cp -fv extra/locale/*.mo out/locale
47+
@mkdir -p ./out/locale
48+
@cp -fv ./extra/locale/*.mo ./out/locale
4949

5050
build-mo:
5151
@echo "=== Building MO files"
5252
@for file in $(shell find ./extra/locale -iname '*.po'); do \
5353
lang=`echo $${file} | cut -d'/' -f4`; \
5454
echo "Building MO file for $${lang}"; \
55-
msgfmt -o "extra/locale/heidisql.$${lang}.mo" $${file}; \
55+
msgfmt -o "./extra/locale/heidisql.$${lang}.mo" $${file}; \
5656
done
5757

5858
build-gtk2:
5959
@echo "=== Building GTK2"
6060
$(LAZBUILD) $(OPTS) $(LPI)
61-
mkdir -p out/gtk2
62-
mv -v $(BIN) $(BINGTK)
61+
@mkdir -p ./out/gtk2
62+
@mv -v $(BIN) $(BINGTK)
6363

64-
run-gtk2: build-gtk2 build-mo
64+
run-gtk2: build-gtk2 tx-pull build-mo
6565
@echo "=== Running GTK2"
66-
# Need to get the .mo files to run
66+
@mkdir -p ./run/locale
67+
@cp -vf ./extra/locale/*.mo ./run/locale
68+
@cp -v $(BINGTK) ./run/heidisql
69+
@./run/heidisql
6770

6871
build-qt5:
6972
@echo "=== Building QT5"
7073
$(LAZBUILD) $(OPTS) $(OPTSQT) $(LPI)
71-
mkdir -p out/qt5
72-
mv -v $(BIN) $(BINQT)
74+
@mkdir -p ./out/qt5
75+
@mv -v $(BIN) $(BINQT)
7376

74-
run-qt5: build-qt5 build-mo
77+
run-qt5: build-qt5 tx-pull build-mo
7578
@echo "=== Running GTK2"
76-
# Need to get the .mo files to folder run
79+
@mkdir -p ./run/locale
80+
@cp -vf ./extra/locale/*.mo ./run/locale
81+
@cp -v $(BINQT) ./run/heidisql
82+
@./run/heidisql
7783

7884
deb-package: build-mo
7985
@echo "=== Creating debian package"

0 commit comments

Comments
 (0)