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
|