File: rules

package info (click to toggle)
proot 5.4.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,012 kB
  • sloc: ansic: 18,627; sh: 1,662; python: 108; asm: 41; makefile: 16; awk: 6
file content (25 lines) | stat: -rwxr-xr-x 619 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
#!/usr/bin/make -f
# -*- makefile -*-

include /usr/share/dpkg/architecture.mk
export CROSS_COMPILE=$(DEB_HOST_GNU_TYPE)-

export DEB_CPPFLAGS_MAINT_APPEND = -DCARE_BINARY_IS_PORTABLE

%:
	dh $@ --sourcedirectory=src

# Force make to print the commands
# By default V=0
override_dh_auto_build:
	dh_auto_build -- V=1 proot care
override_dh_auto_install:

override_dh_installman:
ifeq ($(filter-out nodoc,$(DEB_BUILD_OPTIONS)), $(DEB_BUILD_OPTIONS))
	$(MAKE) -C doc proot/man.1 care/man.1
	mv doc/proot/man.1 doc/proot/proot.1
	mv doc/care/man.1 doc/care/care.1
	dh_installman
	rm doc/proot/proot.1 doc/care/care.1
endif