File: rules

package info (click to toggle)
newsboat 2.21-1.5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 6,180 kB
  • sloc: cpp: 72,024; sh: 383; ansic: 346; makefile: 313; xml: 274; ruby: 206; python: 67; awk: 57; perl: 38
file content (29 lines) | stat: -rwxr-xr-x 750 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
#!/usr/bin/make -f
#export DH_VERBOSE=1

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

CFLAGS += $(CPPFLAGS)
CXXFLAGS += $(CPPFLAGS)

%:
	dh $@

override_dh_auto_build:
	rm -f Cargo.lock
	ln -fs /usr/include/catch2/catch.hpp 3rd-party/
	ln -fs /usr/include/nlohmann/json.hpp 3rd-party/
	dh_auto_build -- CARGO_HOME=debian/cargo_home prefix=/usr all
	make doc

override_dh_auto_install:
	dh_auto_install -- prefix=/usr
	install -m644 debian/config.default $(CURDIR)/debian/newsboat/etc/newsboat/config

override_dh_auto_test:
	dh_auto_test -- CARGO_HOME=debian/cargo_home
ifeq (,$(filter nocheck, $(DEB_BUILD_OPTIONS)))
	cd test && LC_ALL=C.UTF-8 TERM=dumb ./test --order rand
endif