File: rules

package info (click to toggle)
xbacklight 1.2.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, jessie, jessie-kfreebsd, sid, stretch
  • size: 728 kB
  • ctags: 56
  • sloc: sh: 3,918; ansic: 271; makefile: 47
file content (44 lines) | stat: -rwxr-xr-x 1,437 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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/usr/bin/make -f
# -*- makefile -*-
# Sample debian/rules that uses debhelper.
# This file was originally written by Joey Hess and Craig Small.
# As a special exception, when this file is copied by dh-make into a
# dh-make output file, you may use that output file without restriction.
# This special exception was added by Craig Small in version 0.37 of dh-make.

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

# These are used for cross-compiling and for saving the configure script
# from having to guess our platform (since we know it already)
DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)

CFLAGS = -Wall -g

ifneq (,$(filter noopt,$(DEB_BUILD_OPTIONS)))
	CFLAGS += -O0
else
	CFLAGS += -O2
endif
ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
	NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
	MAKEFLAGS += -j$(NUMJOBS)
endif

BUILDDIR = build

override_dh_auto_configure:
	autoreconf -vfi
	dh_auto_configure --builddirectory=$(BUILDDIR) -- \
		--disable-silent-rules \
		CFLAGS="$(CFLAGS)" LDFLAGS="-Wl,-z,defs"

build build-arch build-indep binary binary-arch binary-indep:
	dh $@ --builddirectory=$(BUILDDIR)

clean:
	dh $@ --builddirectory=$(BUILDDIR)
	rm -f aclocal.m4 configure config.guess config.sub config.h.in
	rm -f depcomp install-sh missing
	find -name Makefile.in -delete