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 45
|
#!/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 $@
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
override_dh_auto_test:
|