File: rules

package info (click to toggle)
sensible-utils 0.0.25
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 600 kB
  • sloc: sh: 859; makefile: 122; sed: 88
file content (38 lines) | stat: -rwxr-xr-x 815 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
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#! /usr/bin/make -f

export VERBOSE=1

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

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

%:
	dh $@

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
	./configure
	$(RM) -rf autom4te.cache

	cd man && make update-po

.PHONY: prebuild

# Local Variables:
# mode:Makefile
# End: