File: rules

package info (click to toggle)
openmsx-catapult 19.0-1
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,952 kB
  • sloc: cpp: 6,592; python: 458; makefile: 43; sed: 37; sh: 25
file content (50 lines) | stat: -rwxr-xr-x 1,745 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
44
45
46
47
48
49
50
#!/usr/bin/make -f

%:
	dh $@

override_dh_auto_build:
	$(MAKE) \
		V=2 \
		DEB_CXXFLAGS="$(shell dpkg-buildflags --get CPPFLAGS) \
			$(shell dpkg-buildflags --get CXXFLAGS)" \
		DEB_LDFLAGS="$(shell dpkg-buildflags --get LDFLAGS)" \
		CATAPULT_STRIP=false \
		INSTALL_SHARE_DIR=/usr/share/openmsx-catapult \
		INSTALL_BASE=/usr/share/openmsx-catapult \
		CATAPULT_OPENMSX_BINARY=/usr/bin/openmsx \
		CATAPULT_OPENMSX_SHARE=/usr/share/openmsx
	docbook-to-man debian/openmsx-catapult.sgml > debian/openmsx-catapult.1

override_dh_auto_clean:
	dh_testdir
	dh_testroot
	rm -f build-stamp
	$(MAKE) clean
	rm -rf derived/
	rm -rf debian/openmsx-catapult
	rm -f debian/openmsx-catapult.1
	rm -r `find . -name '__pycache__'`
	dh_clean

override_dh_auto_install:
	dh_testdir
	dh_testroot
	dh_prep
	# The version compiled and is inserted in this step, and the program is
	# relinked for that, so *FLAGS must be passed here again.
	$(MAKE) install \
		DEB_CXXFLAGS="$(shell dpkg-buildflags --get CPPFLAGS) \
			$(shell dpkg-buildflags --get CXXFLAGS)" \
		DEB_LDFLAGS="$(shell dpkg-buildflags --get LDFLAGS)" \
		INSTALL_BINARY_DIR=$(CURDIR)/debian/openmsx-catapult/usr/bin \
		INSTALL_SHARE_DIR=$(CURDIR)/debian/openmsx-catapult/usr/share/openmsx-catapult \
		INSTALL_DOC_DIR=$(CURDIR)/debian/openmsx-catapult/usr/share/doc/openmsx-catapult \
		SYMLINK_FOR_BINARY=false \
		CATAPULT_INSTALL=$(CURDIR)/debian/openmsx-catapult/usr \
		CATAPULT_NO_DESKTOP_HOOKS=true
	mv $(CURDIR)/debian/openmsx-catapult/usr/bin/catapult $(CURDIR)/debian/openmsx-catapult/usr/bin/openmsx-catapult
	rm debian/openmsx-catapult/usr/share/doc/openmsx-catapult/GPL.txt
	dh_installman debian/openmsx-catapult.1
	dh_installchangelogs doc/release-notes.txt
	dh_installdocs README