File: rules

package info (click to toggle)
pcmciautils 018-10
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 460 kB
  • sloc: ansic: 3,901; lex: 222; makefile: 221; sh: 169; yacc: 105
file content (27 lines) | stat: -rwxr-xr-x 509 bytes parent folder | download | duplicates (4)
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
#! /usr/bin/make -f

DPKG_EXPORT_BUILDFLAGS := 1
include /usr/share/dpkg/default.mk

ifeq (,$(filter terse,$(DEB_BUILD_OPTIONS)))
export V := true
endif

%:
	dh $@

ifeq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE))
CROSS :=
else
CROSS := CROSS=$(DEB_HOST_GNU_TYPE)-
endif

override_dh_auto_build:
	$(MAKE) $(CROSS) STRIPCMD=true

override_dh_auto_install:
	dh_auto_install --destdir=debian/pcmciautils -- \
		pcmciaconfdir=/usr/lib/pcmciautils

override_dh_install:
	dh_install --sourcedir=debian/pcmciautils