File: rules

package info (click to toggle)
vigor 0.016-30
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 5,956 kB
  • sloc: ansic: 44,558; tcl: 1,544; sh: 1,453; makefile: 754; perl: 269; awk: 24; csh: 13
file content (30 lines) | stat: -rwxr-xr-x 843 bytes parent folder | download | duplicates (2)
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

DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)

export DEB_BUILD_MAINT_OPTIONS := hardening=+all
export DEB_CPPFLAGS_MAINT_APPEND := \
	-I/usr/include/tcl8.6 \
	-D_FILE_OFFSET_BITS=64

%:
	dh $@ --sourcedirectory=build --builddirectory=debian/build

override_dh_auto_configure:
	dh_auto_configure -- --with-x --enable-db vi_cv_path_shell=/bin/sh

ifneq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE))
execute_before_dh_auto_build:
	$(MAKE) -C debian/build a2c CC=gcc
endif

override_dh_clean:
	# This is in the upstream tarball, so shouldn't be removed.
	dh_clean -X 'vi/#v_xchar.c#'

override_dh_auto_install:
	dh_auto_install -- prefix=$(CURDIR)/debian/vigor/usr

override_dh_installchangelogs:
	dh_installchangelogs docs/changelog