File: rules

package info (click to toggle)
syncthingtray 1.3.2-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 5,220 kB
  • sloc: cpp: 21,467; xml: 1,657; sh: 80; javascript: 53; makefile: 22
file content (30 lines) | stat: -rwxr-xr-x 644 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
#!/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) -- \
		-DBUILD_SHARED_LIBS=ON \
		-DPACKAGE_NAMESPACE=martchus \
		-DNO_LIBSYNCTHING=ON

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)