Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2 #-*- makefile -*-
3
4 # Uncomment this to turn on verbose mode.
5 #export DH_VERBOSE=1
6
7 override_dh_auto_clean:
8 $(RM) -r $(CURDIR)/build-shared
9 $(RM) -r $(CURDIR)/build-static
10 dh_auto_clean
11
12 override_dh_auto_configure:
13 dh_auto_configure --buildsystem=cmake --builddir=build-static \
14 -- \
15 -DNNG_ENABLE_TLS=ON -DBUILD_SHARED_LIBS=OFF
16 dh_auto_configure --buildsystem=cmake --builddir=build-shared \
17 -- -DNNG_ENABLE_DOC=ON \
18 -DNNG_ENABLE_TLS=ON -DBUILD_SHARED_LIBS=ON
19
20 override_dh_auto_build:
21 dh_auto_build --buildsystem=cmake --builddir=build-static
22 dh_auto_build --buildsystem=cmake --builddir=build-shared
23
24 override_dh_auto_test:
25 dh_auto_test --buildsystem=cmake --builddir=build-static --no-parallel
26 dh_auto_test --buildsystem=cmake --builddir=build-shared --no-parallel
27
28 override_dh_auto_install:
29 dh_auto_install --buildsystem=cmake --builddir=build-static
30 dh_auto_install --buildsystem=cmake --builddir=build-shared
31
32 override_dh_install:
33 install -d $(CURDIR)/debian/nng-utils/usr/share/doc/nng/
34 mv $(CURDIR)/debian/tmp/usr/share/doc/nng/*.1.html \
35 $(CURDIR)/debian/nng-utils/usr/share/doc/nng/
36 dh_install
37
38 %:
39 dh $@ --buildsystem=cmake
40
41 .PHONY: override_dh_auto_clean override_dh_auto_configure \
42 override_dh_auto_build override_dh_auto_test \
43 override_dh_auto_install override_dh_install