Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3 include /usr/share/dpkg/architecture.mk
4
5 # see https://github.com/libcheck/check/pull/298 for details
6 export DEB_CFLAGS_MAINT_APPEND = -Wno-format-extra-args
7
8 %:
9 dh $@
10
11 override_dh_auto_clean:
12 dh_auto_clean --builddirectory build-standard
13 dh_auto_clean --builddirectory build-pic
14
15 override_dh_auto_configure:
16 AWK=mawk dh_auto_configure --builddirectory build-standard -- \
17 --disable-shared \
18 --enable-subunit
19
20 AWK=mawk CFLAGS="-fPIC $(CFLAGS)" dh_auto_configure --builddirectory build-pic -- \
21 --disable-shared \
22 --enable-subunit
23
24 override_dh_auto_build:
25 dh_auto_build --builddirectory build-standard
26 dh_auto_build --builddirectory build-pic
27
28 override_dh_auto_test:
29 ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS)))
30 dh_auto_test --builddirectory build-standard --max-parallel=1 -- ARGS="--verbose"
31 dh_auto_test --builddirectory build-pic --max-parallel=1 -- ARGS="--verbose"
32 endif
33
34 override_dh_auto_install:
35 dh_auto_install --builddirectory build-standard
36
37 # fix the installation / setup
38 rm debian/check/usr/share/doc/check/COPYING*
39 sed -i '/\/\* generated using gnu compiler .*/d' debian/check/usr/include/check_stdint.h
40 rm debian/check/usr/share/doc/check/ChangeLog
41 rm debian/check/usr/lib/$(DEB_HOST_MULTIARCH)/libcheck.la
42 rm -rf debian/check/usr/share/doc/check/example
43
44 # install the pic library
45 install build-pic/src/.libs/libcheck.a debian/check/usr/lib/$(DEB_HOST_MULTIARCH)/libcheck_pic.a