File: rules

package info (click to toggle)
mira 4.9.6-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 23,744 kB
  • sloc: cpp: 78,076; xml: 25,820; sh: 11,379; lex: 1,211; makefile: 501; perl: 425
file content (58 lines) | stat: -rwxr-xr-x 1,616 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
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
51
52
53
54
55
56
57
58
#!/usr/bin/make -f

# Uncomment this to turn on verbose mode.
export DH_VERBOSE=1
export DEBIAN_MAINTAINER=$(dpkg-parsechangelog -SMaintainer)
export DEB_BUILD_MAINT_OPTIONS=hardening=+all

pkg=mira-assembler
exampledir=usr/share/doc/mira-examples/examples/minidemo/data/bbdataset1/

include /usr/share/dpkg/default.mk

%:
	dh $@

override_dh_auto_install-arch:
	make install DESTDIR=$(CURDIR)/debian/$(pkg)

override_dh_auto_install-indep:
	#There is no installation target for the docs
	mkdir -p $(CURDIR)/debian/tmp/usr/share/doc/$(pkg)
	cp -r -t $(CURDIR)/debian/tmp/usr/share/doc/$(pkg) doc/docbook/bookfigures doc/docbook/images \
	    doc/docbook/doccss doc/docbook/DefinitiveGuideToMIRA.html || true

override_dh_auto_test-arch:
	make check

override_dh_auto_test-indep:

override_dh_auto_build-arch:
	# some *.cc files are created by old flex version which breaks the build
	# see bug #812681
	find -name '*.ll' | sed -e 's/[.]ll$$/.cc/' | xargs rm
	dh_auto_build

override_dh_auto_build-indep:
	dh_auto_build --sourcedir=doc

override_dh_installchangelogs:
	dh_installchangelogs src/mira/CHANGES.txt

#Must clean up the docs before cleaning out config.status
#Then scrub some junk not picked up by 'make clean'
override_dh_auto_clean:
	( cd doc ; make clean ) || true
	dh_auto_clean || true
	find * -name Makefile -exec rm '{}' ';'
	find * -name '*.xxd.H' -exec rm '{}' ';'
	find * -name '*.par.H' -exec rm '{}' ';'
	find * -name 'compileinfo.*' -exec rm '{}' ';'

override_dh_builddeb:
	dh_builddeb -- -Z xz

get-orig-source:
	mkdir -p ../tarballs
	uscan --verbose --force-download --destdir=../tarballs