Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3 ifneq (,$(findstring nodocs,$(DEB_BUILD_OPTIONS)))
4 DEB_BUILD_DOCS=0
5 else
6 DEB_BUILD_DOCS=1
7 endif
8
9 # Let dpkg-gensymbols fail if symbols file updates are needed
10 DPKG_GENSYMBOLS_CHECK_LEVEL ?= 4
11 export DPKG_GENSYMBOLS_CHECK_LEVEL
12
13 include /usr/share/dpkg/architecture.mk
14 ifneq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH))
15 CROSS_COMPILE = $(DEB_HOST_GNU_TYPE)-
16 endif
17 export QT_SELECT=qt5
18
19 override_dh_auto_configure:
20 dh_auto_configure -- \
21 --with-guis="fox16 qt5 gtk3" \
22 --with-qt5-qmake=$(CROSS_COMPILE)qmake6 \
23 --with-qt5-moc=$(CROSS_COMPILE)moc-qt6 \
24 --with-qt5-uic=$(CROSS_COMPILE)uic-qt6 \
25 --enable-system-certs \
26 --with-openssl-libs=/usr/lib/$(DEB_TARGET_MULTIARCH) \
27 --with-libxml2-code=yes \
28 --disable-binreloc \
29 --disable-network-checks
30
31 override_dh_auto_build:
32 dh_auto_build
33 $(MAKE) -C debian/man
34
35 # This is not an arch-indep target, as some built binaries are required to build the srcdoc
36 if [ "$(DEB_BUILD_DOCS)" = "1" ]; then \
37 $(MAKE) srcdoc; \
38 rm -v apidoc/jquery.js; \
39 else \
40 mkdir apidoc; \
41 fi
42
43 override_dh_makeshlibs:
44 dh_makeshlibs -Xgwenhywfar/plugins
45
46 %:
47 dh $@
48
49 .PHONY: override_dh_auto_configure override_dh_auto_build