summaryrefslogtreecommitdiff
path: root/debian/rules
blob: da20b2d2013d0ba937c940d6c23cfaa22ba7d642 (plain)
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
#!/usr/bin/make -f

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

export QT_SELECT:=qt5
export DEB_BUILD_MAINT_OPTIONS=hardening=+all

override_dh_auto_configure:
	lrelease ultracopier.pro
	lrelease plugins/CopyEngine/Ultracopier/CopyEngine.pro
	lrelease plugins/Themes/Oxygen/interface.pro
	dh_auto_configure --buildsystem=qmake -- \
		QMAKE_CXXFLAGS_RELEASE="$(CXXFLAGS) $(CPPFLAGS)" \
		QMAKE_CXXFLAGS_DEBUG="$(CXXFLAGS) $(CPPFLAGS)" \
		target.path=/usr/bin "INSTALLS+=target" \
		ultracopier.pro

clean:
	rm -f build
	dh clean --buildsystem=qmake
	find -name \*.qm -delete
	rm -f debian/detect_arch

build:
	dh build --buildsystem=qmake
	touch build

%:
	dh $@ --buildsystem=qmake