File: rules

package info (click to toggle)
mes 0.22-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 6,240 kB
  • sloc: ansic: 20,596; lisp: 11,411; sh: 5,954; asm: 161; makefile: 30
file content (43 lines) | stat: -rwxr-xr-x 1,184 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
#!/usr/bin/make -f

export CFLAGS = -fdebug-prefix-map=$(CURDIR)=. -g

include /usr/share/dpkg/architecture.mk

CONFIGURE_ARGS += --disable-silent-rules
CONFIGURE_ARGS += --verbose
CONFIGURE_ARGS += --includedir=/usr/include/mes/
CONFIGURE_ARGS += --libdir=/usr/lib/$(DEB_HOST_MULTIARCH)/mes/

ifeq ($(DEB_HOST_ARCH),i386)
CONFIGURE_ARGS += --with-bootstrap
endif

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- $(CONFIGURE_ARGS)

override_dh_auto_build:
	dh_auto_build -- V=2

override_dh_strip:
	dh_strip --exclude=.go --exclude=mes-mescc-static

override_dh_dwz:
	dh_dwz --exclude=.go --exclude=mes

override_dh_install:
	dh_install
	# MES binaries are static, so rename to reflect this
	mv -v debian/mes/usr/bin/mes-gcc debian/mes/usr/bin/mes-gcc-static
ifeq ($(DEB_HOST_ARCH),i386)
	mv -v debian/mes/usr/bin/mes-mescc debian/mes/usr/bin/mes-mescc-static
endif
	# Remove cruft that does not beling in info/doc directories
	rm -vf debian/mes/usr/share/info/images/gcc-mesboot-graph.dot*
	rm -vf debian/mes/usr/share/info/images/README*
	rm -vf debian/mes/usr/share/info/dir*
	rm -vf debian/mes/usr/share/doc/mes/INSTALL*
	rm -vf debian/mes/usr/share/doc/mes/COPYING*