File: rules

package info (click to toggle)
zpaqfranz 62.2-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 8,812 kB
  • sloc: cpp: 92,038; makefile: 52
file content (25 lines) | stat: -rwxr-xr-x 534 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
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

include /usr/share/dpkg/architecture.mk
ifneq ($(DEB_HOST_GNU_CPU), x86_64)
  DEB_CPPFLAGS_MAINT_APPEND = -DNOJIT
endif

include /usr/share/dpkg/default.mk

%:
	dh $@

override_dh_auto_build:
	dh_auto_build -- CFLAGS="$(CPPFLAGS) $(CXXFLAGS) $(LDFLAGS) -Dunix -DSFTP"

override_dh_auto_install:
	mkdir -p debian/zpaqfranz/usr/bin
	dh_auto_install -- BINDIR=/usr/bin

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	./zpaqfranz autotest
endif