File: rules

package info (click to toggle)
notepadqq 2.0.0~beta1-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 9,188 kB
  • sloc: cpp: 17,647; sh: 223; xml: 36; makefile: 32
file content (24 lines) | stat: -rwxr-xr-x 703 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
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS=hardening=+all
export QMAKE_LFLAGS=$(shell dpkg-buildflags --get LDFLAGS) -Wl,--as-needed
export QMAKE_CXXFLAGS=$(shell dpkg-buildflags --get CXXFLAGS)
export QT_SELECT=qt5

%:
	dh ${@}

override_dh_auto_clean:
	dh_auto_clean
	rm -rf out

# Work-around for some machines where INSTALL_ROOT is not set properly by
# dh_auto_install
override_dh_auto_install:
	dh_auto_install --no-parallel -- INSTALL_ROOT=$(CURDIR)/debian/tmp

override_dh_install:
	dh_install -XLICENCE -XLICENSE -XAUTHORS -X.md -Xsrc/editor/libs
	install -m755 debian/tmp/usr/bin/notepadqq \
		$(CURDIR)/debian/notepadqq/usr/lib/notepadqq/notepadqq.sh
	rm debian/tmp/usr/bin/notepadqq