File: rules

package info (click to toggle)
partman-auto 149
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 1,296 kB
  • sloc: sh: 959; makefile: 17
file content (23 lines) | stat: -rwxr-xr-x 555 bytes parent folder | download | duplicates (5)
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
%:
	dh $@ --with d-i

ARCH=$(shell dpkg-architecture -qDEB_HOST_ARCH)

ifeq (,$(wildcard recipes-$(ARCH)))
DI_NUMBERS := recipes
else
DI_NUMBERS := recipes-$(ARCH)
endif
DI_NUMBERS += $(wildcard recipes-$(ARCH)-*)

override_dh_di_numbers:
	dh_di_numbers $(DI_NUMBERS) lib/partman

ifeq ($(ARCH),powerpc)
override_dh_link:
	# temporary hack until chrp_rs6k goes away entirely
	rm -rf debian/partman-auto/lib/partman/recipes-powerpc-chrp_rs6k
	dh_link lib/partman/recipes-powerpc-chrp_ibm \
		lib/partman/recipes-powerpc-chrp_rs6k
endif