#!/usr/bin/make -f # Made with the aid of debmake, by Christoph Lameter, # based on the sample debian/rules file for GNU hello by Ian Jackson. package=nkf build: build-stamp build-stamp: dh_testdir make nkf CC=cc cd NKF; perl Makefile.PL INSTALLDIRS=perl && make CC=cc CFLAGS="-O2 -g -Wall" touch build-stamp clean: dh_testdir dh_testroot -rm -f build-stamp -rm nkf nkf.o -cd NKF; $(MAKE) distclean dh_clean # Build architecture-independent files here. binary-indep: build # We have nothing to do by default. # Build architecture-dependent files here. binary-arch: build dh_testdir dh_testroot dh_clean -k dh_installdirs # Install nkf package install -s -m 755 nkf debian/tmp/usr/bin install -m 444 debian/nkf.1jeuc debian/tmp/usr/share/man/ja/man1/nkf.1 install -m 444 nkf.1 debian/tmp/usr/share/man/man1/nkf.1 cd NKF; make pure_install PREFIX=`pwd`/../debian/tmp/usr INSTALLMAN3DIR=`pwd`/debian/tmp/usr/share/man/man3 find `pwd`/debian/tmp -type f -name .packlist | xargs -r rm dh_installdocs ## Working log at Debian JP Project. cp `pwd`/debian/changelog.DebianJP `pwd`/debian/tmp/usr/share/doc/nkf/ cp `pwd`/debian/nkf1.7+cap1.patch `pwd`/debian/tmp/usr/share/doc/nkf/ gzip -9 `pwd`/debian/tmp/usr/share/doc/nkf/changelog.DebianJP gzip -9 `pwd`/debian/tmp/usr/share/doc/nkf/nkf1.7+cap1.patch # dh_installexamples # dh_installmenu # dh_installinit # dh_installcron # dh_installmanpages -pnkf # dh_undocumented dh_installchangelogs NKF/Changes dh_strip dh_movefiles -rm -rf `pwd`/debian/tmp/usr/lib dh_compress dh_suidregister dh_fixperms dh_installdeb dh_shlibdeps dh_gencontrol # dh_makeshlibs dh_md5sums dh_builddeb source diff: @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false binary: binary-indep binary-arch .PHONY: build clean binary-indep binary-arch binary