Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3 #export DH_VERBOSE=1
4
5 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
6
7 DEB_HOST_MULTIARCH ?= dpkg-architecture -qDEB_HOST_MULTIARCH
8
9 CFLAGS += $(CPPFLAGS)
10
11 %:
12 dh $@ --without autoreconf
13
14 override_dh_auto_configure:
15 dh_auto_configure -- --x-libraries=/usr/lib/$(DEB_HOST_MULTIARCH)
16
17 override_dh_auto_test:
18 ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS)))
19 #it takes too long time.
20 -dh_auto_test
21 endif
22
23 override_dh_auto_install:
24 dh_auto_install --no-parallel
25
26 override_dh_installchangelogs:
27 dh_installchangelogs CHANGES.html
28
29 override_dh_install:
30 cd tcl/test && sh ./remove.com
31 dh_install -Xtest-output-
32
33 override_dh_compress:
34 dh_compress -X.tcl -Xvalidate -Xtest-all-template1
35
36 dfsg-orig:
37 cd ..; \
38 TAR_NAME=`ls ns2_2.*.orig.tar.gz`; \
39 tar xzf $$TAR_NAME; \
40 rm ns-2.*/indep-utils/model-gen/crl_to_pcap; \
41 rm ns-2.*/indep-utils/model-gen/output_format.pdf; \
42 rm ns-2.*/indep-utils/model-gen/trace_processing.pdf; \
43 rm ns-2.*/wpan/WPAN_ZBR_pub.pdf; \
44 chmod a-x ns-2.*/tcl/test/test-sack; \
45 tar Jcf `echo $$TAR_NAME| sed s/.orig.tar.gz/+dfsg.orig.tar.xz/g` ns-2.*/; \
46 rm -rf ns-2.*