#! /usr/bin/make -f #export DH_VERBOSE=1 PACKAGE=`cat debian/PACKAGE` PKGSNAME=wl EMACS=emacs pre-build: pre-build-stamp pre-build-stamp: dh_testdir grep '^Package: ' debian/control | head -1 | sed -e "s/^Package: //" > debian/PACKAGE sed -e "s/@PACKAGE@/$(PACKAGE)/g" debian/README.Debian.in > debian/README.Debian sed -e "s/@PACKAGE@/$(PACKAGE)/g" debian/dirs.in > debian/dirs sed -e "s/@PACKAGE@/$(PACKAGE)/g" debian/emacsen-install.in > debian/emacsen-install sed -e "s/@PACKAGE@/$(PACKAGE)/g" debian/emacsen-remove.in > debian/emacsen-remove sed -e "s/@PACKAGE@/$(PACKAGE)/g" debian/emacsen-startup.in > debian/emacsen-startup touch $@ build-indep: pre-build build-indep-stamp build-indep-stamp: dh_testdir $(EMACS) -q -no-site-file -batch -eval '(progn (set-language-environment "Japanese")'"(prefer-coding-system 'iso-2022-jp))" -l WL-MK -eval '(wl-texinfo-format)' touch $@ build-arch: build: build-indep build-arch clean: dh_testdir dh_testroot rm -f *build*-stamp rm -f doc/*.info debian/PACKAGE debian/README.Debian debian/dirs debian/emacsen-install debian/emacsen-remove debian/emacsen-startup dh_clean install: build-indep dh_testdir dh_testroot dh_prep dh_installdirs cp -r WL-* NEWS* wl elmo utils debian/$(PACKAGE)/usr/share/$(PKGSNAME)/ rm -f debian/$(PACKAGE)/usr/share/$(PKGSNAME)/wl/.cvsignore cp -r etc/icons/* debian/$(PACKAGE)/usr/share/pixmaps/$(PKGSNAME)/ cp etc/ja.Emacs debian/$(PACKAGE)/etc/X11/Xresources/wanderlust.ja mv debian/$(PACKAGE)/usr/share/$(PKGSNAME)/wl/ChangeLog debian/$(PACKAGE)/usr/share/doc/$(PACKAGE)/changelog.wl mv debian/$(PACKAGE)/usr/share/$(PKGSNAME)/elmo/ChangeLog debian/$(PACKAGE)/usr/share/doc/$(PACKAGE)/changelog.elmo mv debian/$(PACKAGE)/usr/share/$(PKGSNAME)/utils/ChangeLog debian/$(PACKAGE)/usr/share/doc/$(PACKAGE)/changelog.utils binary-indep: install dh_testdir dh_testroot dh_installdocs dh_installexamples samples/* dh_installemacsen --priority 65 dh_installinfo dh_installchangelogs ChangeLog dh_link usr/share/pixmaps/$(PKGSNAME) usr/share/$(PKGSNAME)/etc/icons dh_link usr/share/$(PKGSNAME)/NEWS /usr/share/doc/$(PACKAGE)/NEWS dh_link usr/share/$(PKGSNAME)/NEWS.ja /usr/share/doc/$(PACKAGE)/NEWS.ja dh_compress dh_fixperms dh_installdeb dh_gencontrol dh_md5sums dh_builddeb binary-arch: binary: binary-indep binary-arch .PHONY: build-indep build-arch build clean binary-indep binary-arch binary install