File: rules

package info (click to toggle)
newsboat 2.38-0.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 7,540 kB
  • sloc: cpp: 90,216; xml: 606; sh: 429; makefile: 369; ruby: 258; python: 239; ansic: 211; php: 63; awk: 59; perl: 38
file content (32 lines) | stat: -rwxr-xr-x 843 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
#!/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) -Wno-error

%:
	dh $@


override_dh_auto_build:
	rm -f Cargo.lock
	rm -f 3rd-party/catch*
	ln -sf /usr/include/catch2/catch_all.hpp 3rd-party/catch.hpp
	ln -sf /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
	-CARGO_HOME=debian/cargo_home cargo test
endif