File: rules

package info (click to toggle)
gimagereader 3.4.2-7
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 7,888 kB
  • sloc: cpp: 29,254; xml: 376; sh: 284; python: 70; makefile: 42
file content (38 lines) | stat: -rwxr-xr-x 790 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
#!/usr/bin/make -f

#export DH_VERBOSE=1
export V=1

## Enable compiler hardening flags.
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

# Check if the Qt variant should be build
build_qt = $(shell dh_listpackages | grep "\-qt$$")

%:
	dh $@

override_dh_auto_clean:
	dh_auto_clean
ifneq ($(build_qt),)
	dh_auto_clean --builddirectory=build-qt
endif

override_dh_auto_configure:
	dh_auto_configure -- -DINTERFACE_TYPE=gtk -DENABLE_VERSIONCHECK=0
ifneq ($(build_qt),)
	dh_auto_configure --builddirectory=build-qt -- -DINTERFACE_TYPE=qt6 -DENABLE_VERSIONCHECK=0
endif

override_dh_auto_build:
	dh_auto_build
ifneq ($(build_qt),)
	dh_auto_build --builddirectory=build-qt
endif

override_dh_auto_install:
	dh_auto_install
ifneq ($(build_qt),)
	dh_auto_install --builddirectory=build-qt
endif