File: rules

package info (click to toggle)
pseudo 1.8.1%2Bgit20161012-2
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 1,804 kB
  • ctags: 927
  • sloc: ansic: 11,729; sh: 760; python: 749; makefile: 158
file content (23 lines) | stat: -rwxr-xr-x 665 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
#!/usr/bin/make -f

export CFLAGS := $(shell dpkg-buildflags --get CFLAGS) $(shell dpkg-buildflags --get CPPFLAGS) $(shell dpkg-buildflags --get LDFLAGS)

libdir := /usr/lib/$(shell dpkg-architecture -qDEB_HOST_MULTIARCH)/pseudo

%:
	dh $@

override_dh_auto_configure:
	./configure --prefix=/usr --bits=$(shell dpkg-architecture -qDEB_HOST_ARCH_BITS) --libdir=$(libdir) --without-rpath
	sed -e 's,@LIBDIR@,$(libdir),g' debian/fakeroot-pseudo.in > debian/fakeroot-pseudo

override_dh_auto_install:
	dh_auto_install
	rm -r debian/*/usr/var

override_dh_auto_test:
	unset LD_PRELOAD; \
	dh_auto_test

override_dh_installchangelogs:
	dh_installchangelogs ChangeLog.txt