File: rules

package info (click to toggle)
sensible-utils 0.0.12
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 424 kB
  • sloc: sh: 715; makefile: 142; sed: 88
file content (57 lines) | stat: -rwxr-xr-x 1,165 bytes parent folder | download | duplicates (2)
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
45
46
47
48
49
50
51
52
53
54
55
56
57
#! /usr/bin/make -f

export VERBOSE=1

include /usr/share/dpkg/pkg-info.mk
include /usr/share/dpkg/architecture.mk

package = sensible-utils

CFLAGS = -Wall -g

ifneq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE))
CONFARGS = --host=$(DEB_HOST_GNU_TYPE)
endif

ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
CFLAGS += -O0
else
CFLAGS += -O2
endif
#ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
#INSTALL_PROGRAM += -s
#endif

%:
	dh $@

override_dh_autoconfigure-indep:
	CFLAGS="$(CFLAGS)" ./configure --prefix=/usr \
		                       --mandir=/usr/share/man $(CONFARGS)

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS) $(DEB_BUILD_PROFILES)))
	make check
else
	@echo '**********************************************************'
	@echo 'Skip test suite                                           '
	@echo '**********************************************************'
endif



prebuild:
	echo "$(DEB_VERSION_UPSTREAM)"
	printf "define(SENSIBLE_UTILS_VERSION, %s)\n" $(DEB_VERSION_UPSTREAM) >acinclude.m4

	autoreconf -fi
	$(RM) -rf autom4te.cache

	cd man && make update-po


.PHONY: prebuild

# Local Variables:
# mode:Makefile
# End: