quarkai/debian/rules

32 lines
721 B
Plaintext
Raw Normal View History

2017-12-21 11:51:56 +08:00
#!/usr/bin/make -f
# -*- makefile -*-
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
2017-12-22 08:39:00 +08:00
export QT_SELECT=5
QMAKE_OPTS = DEFINES+=NO_DEBUG_ON_CONSOLE
MAKE_OPTS = PREFIX=/usr QMAKE=qmake LRELEASE=lrelease QMAKE_OPTS="$(QMAKE_OPTS)"
2017-12-21 11:51:56 +08:00
override_dh_auto_configure:
2017-12-22 08:39:00 +08:00
QT_SELECT=qt5 dh_auto_configure \
2017-12-21 11:51:56 +08:00
-- "QMAKE_CXXFLAGS=$(CFLAGS)" \
2017-12-22 08:39:00 +08:00
kylin-assistant.pro
2017-12-21 11:51:56 +08:00
%:
2018-01-17 11:45:16 +08:00
dh $@ --with python3 --fail-missing --parallel
2017-12-22 08:39:00 +08:00
override_dh_install:
./autogen.sh
dh_install --fail-missing
override_dh_auto_clean:
[ ! -d src/.moc ] || $(RM) -r src/.moc
[ ! -d src/.obj ] || $(RM) -r src/.obj
[ ! -d src/.ui ] || $(RM) -r src/.ui
[ ! -f src/Makefile ] || dh_auto_clean
override_dh_auto_build:
dh_auto_build -- $(MAKE_OPTS)