File: rules

package info (click to toggle)
bwm-ng 0.6.3-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 592 kB
  • sloc: ansic: 3,259; sh: 117; makefile: 24
file content (21 lines) | stat: -rwxr-xr-x 448 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
#!/usr/bin/make -f

include /usr/share/dpkg/architecture.mk

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

ifneq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH))
CONFIGURE_FLAGS =
ifeq ($(DEB_HOST_ARCH_OS),linux)
CONFIGURE_FLAGS += --with-diskstats --with-procnetdev
endif
ifeq ($(DEB_HOST_ARCH_OS),kfreebsd)
CONFIGURE_FLAGS += --with-partitions --with-procnetdev
endif
endif

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- $(CONFIGURE_FLAGS)