File: rules

package info (click to toggle)
pseudo 1.9.0%2Bgit20180920-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,804 kB
  • sloc: ansic: 12,135; sh: 800; python: 752; makefile: 159
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