@@ -3,9 +3,9 @@ OPTS := -B --bm=Release
33OPTSQT := --ws=qt5
44LPI := 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
3131clean :
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
3737tx-push :
3838 @echo " === Pushing to Transifex"
@@ -44,36 +44,42 @@ tx-pull:
4444
4545copy-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
5050build-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
5858build-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
6871build-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
7884deb-package : build-mo
7985 @echo " === Creating debian package"
0 commit comments