Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3 # Uncomment this to turn on verbose mode.
4 #export DH_VERBOSE=1
5
6 export DEB_BUILD_MAINT_OPTIONS := hardening=+all qa=+bug reproducible=+all
7
8 %:
9 dh $@
10
11 # dh_autoreconf interferes with portability -- skip it
12 override_dh_autoreconf:
13 echo "skip: dh_autoreconf autoreconf-dickey -- -f -i"
14
15 override_dh_auto_configure:
16 dh_auto_configure -- \
17 --enable-warnings \
18 --verbose \
19 --enable-stdnoreturn \
20 --enable-btyacc \
21 --program-transform-name='s,^yacc,byacc,'
22
23 # workaround for whatis, consistent naming
24 sed -i.saved \
25 -e '/^\.TH/s, YACC, BYACC,' \
26 -e '/^\.ds/s, Yacc, Byacc,' \
27 -e '/^\.ds/s, yacc, byacc,' \
28 -e '/- an LALR/s,^..N,byacc,' \
29 yacc.1
30
31 # omit tests which rely upon getopt error-messages
32 sed -i.saved '/MYFILE=nosuchfile/,/# Test special cases/d' test/run_test.sh
33 diff -u test/run_test.sh.saved test/run_test.sh || echo OK
34
35 execute_after_dh_auto_clean:
36 if test -e test/run_test.sh.saved ; then \
37 mv test/run_test.sh.saved test/run_test.sh; fi
38 if test -e yacc.1.saved ; then mv yacc.1.saved yacc.1 ; fi