File: rules

package info (click to toggle)
nkf 1%3A2.1.5-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster, sid, trixie
  • size: 1,484 kB
  • sloc: ansic: 22,612; perl: 548; makefile: 89; sh: 19; python: 9
file content (29 lines) | stat: -rwxr-xr-x 634 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
# -*- makefile -*-
#export DH_VERBOSE=1

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

%:
	dh $@

override_dh_auto_configure:
	sed -i -e s%/usr/local%/usr% $(CURDIR)/Makefile

override_dh_auto_build:
	make nkf
	make perl

override_dh_auto_test:
	dh_auto_test
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	make -C NKF.mod test
endif

override_dh_auto_install:
	dh_auto_install
	make -C NKF.mod install DESTDIR=$(CURDIR)/debian/libnkf-perl/
	# build UTF-8 nkf.1j manpage
	$(CURDIR)/debian/tmp/usr/bin/nkf -e $(CURDIR)/nkf.1j > $(CURDIR)/nkf.ja.1