File: rules

package info (click to toggle)
libx86 1.1%2Bds1-6
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 956 kB
  • ctags: 1,534
  • sloc: ansic: 20,174; makefile: 77
file content (41 lines) | stat: -rwxr-xr-x 675 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
#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

DEB_HOST_ARCH := $(shell dpkg-architecture -qDEB_HOST_ARCH)

ifneq (,$(filter i386 lpia,$(DEB_HOST_ARCH)))
	BACKEND =
else
	BACKEND = x86emu
endif

override_dh_auto_build:
	dh_auto_build -- BACKEND="$(BACKEND)"

build: build-stamp
build-stamp:
	dh --with quilt build
	touch $@

clean:
	dh --with quilt $@

install: install-stamp
install-stamp: build
	dh install
	touch $@

binary-indep:

override_dh_strip:
	dh_strip --dbg-package=libx86-dbg

binary-arch: build install
	dh $@

binary: binary-indep binary-arch

.PHONY: build clean binary-indep binary-arch binary install