Debian Codegraph @

debian/rules

raw
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 #export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
15
16 %:
17 dh $@ --with autoreconf
18
19 override_dh_auto_configure:
20 # create build directory for both flavours (openssl and gnutls)
21 mkdir -p debian/build-openssl debian/build-gnutls
22 # undo last patch, which is the gnutls patch
23 quilt pop
24 tar -cf - --exclude=debian/build* --exclude=.pc . \
25 | tar -xf - -C debian/build-openssl
26 # reapply last patch, which is the gnutls patch
27 quilt push
28 tar -cf - --exclude=debian/build* --exclude=.pc . \
29 | tar -xf - -C debian/build-gnutls
30 # execute dh_auto_configure on both build flavours
31 cd debian/build-openssl && autoreconf -i && dh_auto_configure -- --without-examples
32 cd debian/build-gnutls && autoreconf -i && dh_auto_configure -- --without-openssl --without-examples
33
34 override_dh_auto_build:
35 # execute dh_auto_build on both build flavours
36 cd debian/build-openssl && dh_auto_build
37 cd debian/build-gnutls && dh_auto_build
38
39 override_dh_auto_test:
40 # execute dh_auto_test on both build flavours
41 cd debian/build-openssl && dh_auto_test
42 cd debian/build-gnutls && dh_auto_test
43
44 override_dh_auto_install:
45 echo dh_auto_install