Debian Codegraph @

debian/rules

raw symbols SCIP
1 #!/usr/bin/make -f
2 # See debhelper(7) (uncomment to enable)
3 # output every command that modifies files on the build system.
4 #export DH_VERBOSE = 1
5
6
7 # see FEATURE AREAS in dpkg-buildflags(1)
8 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
9
10 # see ENVIRONMENT in dpkg-buildflags(1)
11 # package maintainers to append CFLAGS
12 #export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic
13 # package maintainers to append LDFLAGS
14
15 # Upstream builds without optimization and tests fail with even -O1.
16 CFLAGS += -O0 -std=gnu17
17
18 %:
19 dh $@
20
21 override_dh_testdir:
22 dh_testdir
23 test -e /usr/share/slib || \
24 (echo "Must have slib installed for compile" && exit 1)
25
26 override_dh_auto_configure:
27 ./configure
28 cp debian/require.scm.debian require.scm
29 cp debian/scm.opt.debian libscm.opt
30
31 override_dh_auto_build:
32 make scmlit
33 # Use the same options for both static library and executable
34 ./build -p linux -hsystem -f libscm.opt
35 ./build -p linux -hsystem -f libscm.opt -t lib
36 makeinfo --html --no-split scm.texi
37 makeinfo --html --no-split Xlibscm.texi
38 cp XlibScm.html Xlibscm.html
39 cp ChangeLog changelog
40
41 override_dh_strip:
42 dh_strip --no-automatic-dbgsym
43
44 override_dh_auto_install:
45 # Make .scm scheme library scripts non-executable...
46 chmod a-x *.scm *.c
47 # except compile.scm
48 chmod a+x compile.scm
49 # skip; files listed explicitly