File: rules

package info (click to toggle)
bison 2:3.0.4.dfsg-1
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 20,032 kB
  • sloc: sh: 181,020; ansic: 51,701; lex: 2,106; cpp: 1,400; perl: 923; yacc: 668; java: 636; sed: 141; makefile: 89
file content (42 lines) | stat: -rwxr-xr-x 1,084 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
38
39
40
41
42
#!/usr/bin/make -f
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
#export DH_OPTIONS=-v

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

%:
	dh $@ --parallel

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

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

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.texi \
		$(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

override_dh_auto_test: