File: rules

package info (click to toggle)
findutils 4.10.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 26,108 kB
  • sloc: ansic: 126,635; sh: 11,486; yacc: 1,852; makefile: 844; exp: 839; python: 66; sed: 16
file content (37 lines) | stat: -rwxr-xr-x 870 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
#!/usr/bin/make -f

export DEB_CFLAGS_MAINT_APPEND := -Wall
export DEB_CXXFLAGS_MAINT_APPEND := -Wall
export DEB_BUILD_MAINT_OPTIONS := hardening=+all
export RUN_VERY_EXPENSIVE_TESTS := yes
export RUN_EXPENSIVE_TESTS := yes

ifneq ($(filter nodoc,$(DEB_BUILD_PROFILES)),)
MAKEINFO = true
export MAKEINFO
endif

ifeq ($(DEB_HOST_ARCH),hurd-i386)
  Y2038 = --disable-year2038
endif

override_dh_auto_configure:
	dh_auto_configure --verbose -- \
		--localstatedir=/var/cache/locate \
		--enable-d_type-optimisation \
		$(Y2038)

override_dh_auto_clean:
	[ ! -f Makefile ] || dh_auto_clean --verbose
	rm -fv doc/find.info*

override_dh_auto_install:
	dh_auto_install --verbose
	cd "$(CURDIR)/debian/tmp/usr/" && \
		for i in updatedb locate ; do \
			mv -v bin/$$i bin/$$i.findutils ; \
			mv -v share/man/man1/$${i}.1 share/man/man1/$${i}.findutils.1 ; \
		done

%:
	dh $@