Debian Codegraph @

debian/rules

raw symbols SCIP
1 #!/usr/bin/make -f
2
3 export DEB_BUILD_MAINT_OPTIONSscip-debian debian cdogs-sdl 2.4.0+dfsg-2 cdogs-sdl/rules/DEB_BUILD_MAINT_OPTIONS. = hardening=+all
4
5 # nanopb headers are in /usr/include/nanopb, but generated msg.pb.h
6 # header includes <pb.h>
7 export DEB_CPPFLAGS_MAINT_APPENDscip-debian debian cdogs-sdl 2.4.0+dfsg-2 cdogs-sdl/rules/DEB_CPPFLAGS_MAINT_APPEND. = -I/usr/include/nanopb
8
9 # fix build with FORTIFY_SOURCE level 3
10 # https://github.com/cxong/cdogs-sdl/issues/838
11 export DEB_CFLAGS_MAINT_APPENDscip-debian debian cdogs-sdl 2.4.0+dfsg-2 cdogs-sdl/rules/DEB_CFLAGS_MAINT_APPEND. = -finline-limit=1000 -Wno-stringop-truncation
12
13 %scip-debian debian cdogs-sdl 2.4.0+dfsg-2 cdogs-sdl/rules/`%`().:
14 dh $@
15
16 src/proto/msg.pb.cscip-debian debian cdogs-sdl 2.4.0+dfsg-2 cdogs-sdl/rules/`src/proto/msg.pb.c`(). src/proto/msg.pb.hscip-debian debian cdogs-sdl 2.4.0+dfsg-2 cdogs-sdl/rules/`src/proto/msg.pb.h`(). &: src/proto/msg.proto
17 cd src/proto && protoc --nanopb_out=. msg.proto
18
19 override_dh_auto_configurescip-debian debian cdogs-sdl 2.4.0+dfsg-2 cdogs-sdl/rules/override_dh_auto_configure().: src/proto/msg.pb.c src/proto/msg.pb.h
20 dh_auto_configurescip-debian debian debhelper . dh_auto_configure(). -- \
21 -DCDOGS_BIN_DIR=/usr/games \
22 -DCDOGS_DATA_DIR=/usr/share/games/cdogs-sdl/ \
23 -DUSE_SHARED_ENET=ON \
24 -DDEBUG=ON \
25 -DBUILD_EDITOR=OFF
26
27 execute_before_dh_installdocsscip-debian debian cdogs-sdl 2.4.0+dfsg-2 cdogs-sdl/rules/execute_before_dh_installdocs().:
28 rm -r $(CURDIRscip-debian debian cdogs-sdl 2.4.0+dfsg-2 cdogs-sdl/rules/CURDIR.)/debian/tmp/usr/doc
29
30 execute_before_dh_installscip-debian debian cdogs-sdl 2.4.0+dfsg-2 cdogs-sdl/rules/execute_before_dh_install().:
31 find $(CURDIRscip-debian debian cdogs-sdl 2.4.0+dfsg-2 cdogs-sdl/rules/CURDIR.)/debian/tmp -type f '(' -iname "LICENSE.md" -o -iname "README.md" -o -name "*.sh" ')' -delete
32 # delete txt files (containing only license/copyright information), except a few important ones
33 find $(CURDIRscip-debian debian cdogs-sdl 2.4.0+dfsg-2 cdogs-sdl/rules/CURDIR.)/debian/tmp -type f '(' -name "*.txt" -a '!' \
34 '(' -name 'gamecontroller*db.txt' -o -name 'prefixes.txt' -o -name 'suffix*.txt' ')' ')' -delete
35
36 override_dh_gencontrolscip-debian debian cdogs-sdl 2.4.0+dfsg-2 cdogs-sdl/rules/override_dh_gencontrol().:
37 dh_gencontrolscip-debian debian debhelper . dh_gencontrol(). -- -VBuilt-Using="$(shell dpkg-query -f '$${source:Package} (= $${source:Version}), ' -W "libnanopb-dev")"
38
39 override_dh_auto_testscip-debian debian cdogs-sdl 2.4.0+dfsg-2 cdogs-sdl/rules/override_dh_auto_test().:
40 dh_auto_testscip-debian debian debhelper . dh_auto_test(). --no-parallel