Debian Codegraph @

debian/rules

raw
1 #! /usr/bin/make -f
2
3 NULL=
4
5 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
6 export DPKG_GENSYMBOLS_CHECK_LEVEL = 4
7
8 # The advantages of -Wl,-Bsymbolic-functions are of limited value here, and
9 # they mean that the test suite's LD_PRELOAD tricks don't work properly.
10 export DEB_LDFLAGS_MAINT_STRIP := -Wl,-Bsymbolic-functions
11
12 %:
13 dh $@ --buildsystem autoconf
14
15 PY3REQUESTED := $(shell py3versions -r)
16 PY3DEFAULT := $(shell py3versions -d)
17 # Run setup.py with the default python3 last so that the scripts use
18 # #!/usr/bin/python3 and not #!/usr/bin/python3.X.
19 PY3 := $(filter-out $(PY3DEFAULT),$(PY3REQUESTED)) python3
20
21 override_dh_autoreconf:
22 dh_autoreconf -- ./autogen.sh
23
24 override_dh_auto_configure:
25 dh_auto_configure -- \
26 --with-python-interpreters='$(PY3)' \
27 --with-systemdsystemunitdir=/usr/lib/systemd/system \
28 --with-systemduserunitdir=/usr/lib/systemd/user \
29 --with-default-root=/var/lib/clickpkg \
30 $(NULL)
31
32 execute_before_dh_installdocs:
33 ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS)))
34 $(MAKE) -C doc subst DEFAULT_ROOT=/var/lib/clickpkg || true
35 $(MAKE) -C doc html man
36 endif
37
38 execute_after_dh_auto_clean:
39 $(MAKE) -C doc subst-clean || true
40 $(MAKE) -C doc clean || true
41
42 PYTHON_INSTALL_FLAGS := \
43 --force --root=$(CURDIR)/debian/tmp \
44 --no-compile -O0 --install-layout=deb
45
46 override_dh_auto_install:
47 dh_auto_install -- PYTHON_INSTALL_FLAGS='$(PYTHON_INSTALL_FLAGS)'
48 rm -f debian/tmp/usr/lib/*/click/*.la
49
50 override_dh_install:
51 rm debian/tmp/usr/lib/*/libclick-0.4.la
52 dh_install
53 DH_AUTOSCRIPTDIR=debhelper debhelper/dh_click --name=click-desktop
54
55 get-orig-source:
56 uscan --noconf --force-download --rename --download-current-version --destdir=..