File: rules

package info (click to toggle)
libresidfp 0.9.2-1
  • links: PTS
  • area: main
  • in suites: experimental
  • size: 780 kB
  • sloc: cpp: 5,928; makefile: 127
file content (28 lines) | stat: -rwxr-xr-x 608 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
#! /usr/bin/make -f
# -*- makefile -*-

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

ifneq (,$(filter debug,$(DEB_BUILD_OPTIONS)))
	DEB_CONFIGURE_EXTRA_FLAGS += --enable-debug
endif

ifneq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	DEB_CONFIGURE_EXTRA_FLAGS += --disable-tests
endif

override_dh_auto_configure:
	# TODO: fix static library build with --enable-lto
	dh_auto_configure -- $(DEB_CONFIGURE_EXTRA_FLAGS)

override_dh_auto_build:
	dh_auto_build
ifeq ($(filter nodoc,$(DEB_BUILD_OPTIONS)),)
	$(MAKE) doc
endif

%:
	dh $@

.PHONY: override_dh_auto_configure override_dh_auto_build