| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
DEB_HOST_ARCHscip-debian debian creduce 2.11.0~20240909-3 creduce/rules/DEB_HOST_ARCH. ?= $(shellscip-debian debian creduce 2.11.0~20240909-3 creduce/rules/shell. dpkg-architecture -qDEB_HOST_ARCH) |
| 8 |
|
| 9 |
CLANG_Vscip-debian debian creduce 2.11.0~20240909-3 creduce/rules/CLANG_V. = 21 |
| 10 |
CLANGscip-debian debian creduce 2.11.0~20240909-3 creduce/rules/CLANG. = clang-$(CLANG_Vscip-debian debian creduce 2.11.0~20240909-3 creduce/rules/CLANG_V.) |
| 11 |
GCCscip-debian debian creduce 2.11.0~20240909-3 creduce/rules/GCC. = gcc |
| 12 |
|
| 13 |
ifneq (,$(filterscip-debian debian creduce 2.11.0~20240909-3 creduce/rules/filter. $(DEB_HOST_ARCHscip-debian debian creduce 2.11.0~20240909-3 creduce/rules/DEB_HOST_ARCH.),armel)) |
| 14 |
export LIBATOMIC = -latomic |
| 15 |
endif |
| 16 |
|
| 17 |
%scip-debian debian creduce 2.11.0~20240909-3 creduce/rules/`%`().: |
| 18 |
dh $@ --builddirectory=build --with autoreconf --parallel |
| 19 |
|
| 20 |
override_dh_auto_configurescip-debian debian creduce 2.11.0~20240909-3 creduce/rules/override_dh_auto_configure().: |
| 21 |
dh_auto_configurescip-debian debian debhelper . dh_auto_configure(). -- --with-llvm=/usr/lib/llvm-$(CLANG_Vscip-debian debian creduce 2.11.0~20240909-3 creduce/rules/CLANG_V.) CLANG_FORMAT=clang-format-$(CLANG_Vscip-debian debian creduce 2.11.0~20240909-3 creduce/rules/CLANG_V.) |
| 22 |
|
| 23 |
override_dh_auto_buildscip-debian debian creduce 2.11.0~20240909-3 creduce/rules/override_dh_auto_build().: |
| 24 |
dh_auto_buildscip-debian debian debhelper . dh_auto_build(). |
| 25 |
|
| 26 |
ifeq ($(DEB_HOST_ARCHscip-debian debian creduce 2.11.0~20240909-3 creduce/rules/DEB_HOST_ARCH.),$(DEB_BUILD_ARCHscip-debian debian creduce 2.11.0~20240909-3 creduce/rules/DEB_BUILD_ARCH.)) |
| 27 |
if which help2man >/dev/null 2>&1; then \ |
| 28 |
v=$$(build/creduce/creduce --help| awk '/^creduce/ { print $$2 }'); \ |
| 29 |
help2man --no-info --name='C and C++ program reducer' --version-string=$$v build/creduce/creduce > debian/creduce.1; \ |
| 30 |
fi |
| 31 |
endif |
| 32 |
|
| 33 |
override_dh_auto_testscip-debian debian creduce 2.11.0~20240909-3 creduce/rules/override_dh_auto_test().: |
| 34 |
|
| 35 |
ifeq (,$(findstringscip-debian debian creduce 2.11.0~20240909-3 creduce/rules/findstring. nocheck, $(DEB_BUILD_OPTIONSscip-debian debian creduce 2.11.0~20240909-3 creduce/rules/DEB_BUILD_OPTIONS.))) |
| 36 |
ifeq (,$(filter $(DEB_HOST_ARCH),m68k sh4 s390 sparc)) |
| 37 |
if grep -q '^ *frama-c-base' debian/control; then \ |
| 38 |
cd tests && CLANG="$(CLANG)" GCC="$(GCC)" ./run_tests; \ |
| 39 |
else \ |
| 40 |
echo "Cannot run the tests, frama-c-base not in build dependencies."; \ |
| 41 |
fi |
| 42 |
endif |
| 43 |
endif |
| 44 |
|
| 45 |
override_dh_auto_installscip-debian debian creduce 2.11.0~20240909-3 creduce/rules/override_dh_auto_install().: |
| 46 |
dh_auto_installscip-debian debian debhelper . dh_auto_install(). |
| 47 |
install -D -m 644 debian/creduce.1 debian/creduce/usr/share/man/man1/creduce.1 |
| 48 |
|
| 49 |
override_dh_auto_cleanscip-debian debian creduce 2.11.0~20240909-3 creduce/rules/override_dh_auto_clean().: |
| 50 |
rm -rf tests/tmp_* |
| 51 |
dh_auto_cleanscip-debian debian debhelper . dh_auto_clean(). |