File: rules

package info (click to toggle)
ayatana-indicator-datetime 25.4.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,464 kB
  • sloc: cpp: 11,754; ansic: 387; sh: 142; makefile: 60; xml: 42
file content (76 lines) | stat: -rwxr-xr-x 2,231 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
#!/usr/bin/make -f

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk

DEB_CMAKE_EXTRA_FLAGS = \
    -DENABLE_COVERAGE=OFF \
    $(NULL)

ifeq ($(filter nocheck,$(DEB_BUILD_PROFILES)),)
        DEB_CMAKE_EXTRA_FLAGS += -DENABLE_TESTS=ON
endif

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure --builddirectory=lomiri-variant	\
	                  --buildsystem=cmake			\
	                  --					\
	                  $(DEB_CMAKE_EXTRA_FLAGS)		\
	                  -DENABLE_LOMIRI_FEATURES=ON		\
	                  ..
	dh_auto_configure --builddirectory=ayatana-variant	\
	                  --buildsystem=cmake			\
	                  --					\
	                  $(DEB_CMAKE_EXTRA_FLAGS)		\
	                  -DENABLE_LOMIRI_FEATURES=OFF		\
	                  ..

override_dh_auto_build:
	dh_auto_build     --builddirectory=lomiri-variant	\
	                  --buildsystem=cmake			\
	                  ..
	dh_auto_build     --builddirectory=ayatana-variant	\
	                  --buildsystem=cmake			\
	                  ..

override_dh_auto_test:
	dh_auto_test      --no-parallel				\
	                  --builddirectory=lomiri-variant	\
	                  --buildsystem=cmake			\
	                  ..
	dh_auto_test      --no-parallel				\
	                  --builddirectory=ayatana-variant	\
	                  --buildsystem=cmake			\
	                  ..

override_dh_auto_install:
	dh_auto_install   --builddirectory=lomiri-variant	\
	                  --buildsystem=cmake			\
	                  ..
	dh_auto_install   --builddirectory=ayatana-variant	\
	                  --buildsystem=cmake			\
	                  ..

override_dh_auto_clean:
	dh_auto_clean     --builddirectory=lomiri-variant	\
	                  --buildsystem=cmake			\
	                  ..
	dh_auto_clean     --builddirectory=ayatana-variant	\
	                  --buildsystem=cmake			\
	                  ..

override_dh_missing:
	dh_missing --fail-missing

override_dh_installchangelogs:
	dh_installchangelogs NEWS

get-orig-source:
	uscan --noconf --force-download --rename --download-current-version --destdir=..