File: rules

package info (click to toggle)
bison 2:3.4.1+dfsg-4
  • links: PTS
  • area: main
  • in suites: bullseye
  • size: 23,832 kB
  • sloc: sh: 208,500; ansic: 58,043; lex: 2,364; cpp: 1,907; yacc: 1,887; perl: 937; java: 625; makefile: 278; sed: 16
file content (44 lines) | stat: -rwxr-xr-x 1,167 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
#!/usr/bin/make -f
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
#export DH_OPTIONS=-v

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

SRCDIR = $(CURDIR)
DESTDIR = $(CURDIR)/debian/tmp

%:
	dh $@

override_dh_auto_clean:
	[ ! -f $(SRCDIR)/Makefile ] || dh_auto_clean

override_dh_auto_configure:
	dh_auto_configure -- --disable-silent-rules

override_dh_autoreconf:
	echo '@setfilename bison.info' > $(SRCDIR)/doc/bison.texi
	dh_autoreconf

override_dh_auto_build:
	# Touch all files in the dependency tree of bison.info to
	# inhibit makeinfo invocation in the build process.
	install -d $(SRCDIR)/doc/figs
	touch --date="Jan 01 2000" \
		$(SRCDIR)/doc/bison.info \
		$(SRCDIR)/doc/bison.help \
		$(SRCDIR)/doc/figs/example.txt \
		$(SRCDIR)/doc/figs/example-reduce.txt \
		$(SRCDIR)/doc/figs/example-shift.txt \
		$(SRCDIR)/doc/*.texi \
		$(SRCDIR)/build-aux/cross-options.pl \
		$(SRCDIR)/src/getargs.c
	dh_auto_build

override_dh_auto_install:
	dh_auto_install
	$(RM) -R $(DESTDIR)/usr/share/info/
	mv $(DESTDIR)/usr/bin/yacc $(DESTDIR)/usr/bin/bison.yacc
	mv $(DESTDIR)/usr/share/man/man1/yacc.1 \
		$(DESTDIR)/usr/share/man/man1/bison.yacc.1