File: rules

package info (click to toggle)
diffpdf 2.1.3.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 1,020 kB
  • sloc: cpp: 3,374; makefile: 16
file content (23 lines) | stat: -rwxr-xr-x 848 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
#!/usr/bin/make -f

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

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export QT_SELECT=5

%:
	dh $@

execute_after_dh_auto_install:
	@echo "*** cmake defaults CMAKE_INSTALL_DOCDIR=/usr/share/doc/DiffPDF"
	@echo "    should be /usr/share/doc/diffpdf"
	-mkdir --parent debian/diffpdf/usr/share/doc/diffpdf
	-mv --verbose debian/diffpdf/usr/share/doc/DiffPDF/* \
		      debian/diffpdf/usr/share/doc/diffpdf/
	-rmdir --verbose debian/diffpdf/usr/share/doc/DiffPDF
	@echo "*** Remove extra copy of upstream change log."
	-rm --verbose debian/diffpdf/usr/share/doc/diffpdf/CHANGES
	@echo "*** Rename desktop file in accord with Debian conventions."
	-mv --verbose debian/diffpdf/usr/share/applications/eu.qtrac.diffpdf.desktop \
		      debian/diffpdf/usr/share/applications/diffpdf.desktop