File: rules

package info (click to toggle)
syncthingtray 1.7.5-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 6,804 kB
  • sloc: cpp: 31,085; xml: 1,694; java: 570; sh: 81; javascript: 53; makefile: 25
file content (33 lines) | stat: -rwxr-xr-x 731 bytes parent folder | download
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
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS=hardening=+all
BUILD_DIR=debian/build
DH_FLAGS=--builddirectory=$(BUILD_DIR)

%:
	dh $@ $(DH_FLAGS)

override_dh_auto_configure:
	dh_auto_configure $(DH_FLAGS) -- \
		-DCMAKE_BUILD_TYPE=Release \
		-DBUILD_SHARED_LIBS=ON \
		-DPACKAGE_NAMESPACE=martchus \
		-DNO_LIBSYNCTHING=ON \
		-DQT_PACKAGE_PREFIX=Qt6 \
		-DKF_PACKAGE_PREFIX=KF6

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	QT_QPA_PLATFORM=offscreen $(MAKE) -C $(BUILD_DIR) check
endif

override_dh_auto_build:
	dh_auto_build $(DH_FLAGS)
	ronn --roff debian/man/*.md

override_dh_auto_install:
	dh_auto_install $(DH_FLAGS)

override_dh_auto_clean:
	rm -f debian/man/*.1
	dh_auto_clean $(DH_FLAGS)