File: rules

package info (click to toggle)
guymager 0.8.13-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 1,764 kB
  • sloc: cpp: 17,479; makefile: 30; sh: 22
file content (43 lines) | stat: -rwxr-xr-x 1,231 bytes parent folder | download | duplicates (3)
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
39
40
41
42
43
#!/usr/bin/make -f
# -*- makefile -*-

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

%:
	dh $@

override_dh_auto_configure:
	dh_quilt_patch
	dh_testdir
	dh_auto_configure --builddirectory=. -- DEFINES+="SPLASH_DIR=\'\\\"/usr/share/guymager\\\"\' LANGUAGE_DIR=\'\\\"/usr/share/guymager\\\"\' LANGUAGE_DIR_QT=\'\\\"/usr/share/qt5/translations\\\"\'"
	touch configure-stamp

override_dh_auto_build:
	dh_testdir
	$(MAKE)
	qtchooser -run-tool=lrelease -qt=qt5 guymager.pro
	cd manuals  && ./rebuild.sh && cd -
	touch $@

override_dh_auto_clean:
	dh_quilt_unpatch
	dh_testdir
	dh_testroot
	rm -f build-stamp configure-stamp
	# dpkg-buildpackage starts with cleaning, so we have to be sure that there's a
	# Makefile (and thus call qmake):
	dh_auto_configure --builddirectory=.
	$(MAKE) clean
	# remove leftover files:
	rm -f .qmake.stash compileinfo.cpp manuals/guymager.1
	rm -f guymager
	rm -f guymager_cn.qm guymager_de.qm guymager_en.qm guymager_fr.qm guymager_it.qm guymager_nl.qm
	rm -f Makefile
	dh_clean

override_dh_auto_install:
	dh_auto_install
	dh_installdirs /usr/share/polkit-1/actions
	install -m 644 debian/guymager.policy debian/guymager/usr/share/polkit-1/actions/guymager.policy