File: rules

package info (click to toggle)
kylin-video 2.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 4,520 kB
  • sloc: cpp: 28,429; makefile: 21; xml: 21; sh: 6
file content (38 lines) | stat: -rwxr-xr-x 961 bytes parent folder | download
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
#!/usr/bin/make -f

export QT_SELECT=5
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

QMAKE_OPTS = DEFINES+=NO_DEBUG_ON_CONSOLE
MAKE_OPTS  = PREFIX=/usr QMAKE=qmake LRELEASE=lrelease QMAKE_OPTS="$(QMAKE_OPTS)"

override_dh_auto_configure:
	QT_SELECT=qt5 dh_auto_configure \
                -- "QMAKE_CXXFLAGS=$(CFLAGS)" \
                kylin-video.pro

%:
	dh $@

override_dh_install:
#	./autogen.sh
	dh_install

override_dh_missing:
	dh_missing --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)

#override_dh_auto_build:
#	dh_auto_build -- $(MAKE_OPTS) DOC_PATH=\\\"/usr/share/doc/kylin-video\\\"

#override_dh_auto_install:
#	dh_auto_install -- $(MAKE_OPTS) DOC_PATH=/usr/share/doc/kylin-video
#	rm -f debian/tmp/usr/share/doc/kylin-video/Copying.txt