File: rules

package info (click to toggle)
bison 2%3A3.7.5%2Bdfsg-1
  • links: PTS
  • area: main
  • in suites: bullseye
  • size: 31,976 kB
  • sloc: sh: 320,493; ansic: 74,221; yacc: 2,754; lex: 2,409; cpp: 2,255; perl: 1,044; java: 657; makefile: 309; ruby: 71; sed: 16
file content (41 lines) | stat: -rwxr-xr-x 1,137 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
#!/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

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

execute_before_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

execute_after_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