File: rules

package info (click to toggle)
openmsx-debugger 0.1~git20160326-2
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 2,036 kB
  • ctags: 1,708
  • sloc: cpp: 11,862; python: 518; sh: 45; makefile: 13
file content (20 lines) | stat: -rwxr-xr-x 532 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/make -f

export QT_SELECT := qt5

%:
	dh $@

override_dh_auto_build:
	$(MAKE) DEB_CXXFLAGS="" \
		DEB_COMPILE_FLAGS="$(shell dpkg-buildflags --get CPPFLAGS) \
			$(shell dpkg-buildflags --get CXXFLAGS)" \
		DEB_LINK_FLAGS="$(shell dpkg-buildflags --get LDFLAGS)"
	# Remove rpath.
	chrpath -d derived/bin/openmsx-debugger
	# Generate manpage.
	stx2any -T man debian/openmsx-debugger.txt > debian/openmsx-debugger.1

override_dh_auto_clean:
	rm -rf derived debian/openmsx-debugger.1
	find build -name \*.pyc -exec rm {} \;