#!/usr/bin/make -f # debian/rules for t-prot package clean: $(checkdir) $(checkroot) -rm -rf debian/t-prot debian/files build: # uhm, build for a binary-indep package? Don't try to be funny ;) install: build $(checkdir) $(checkroot) -rm -rf debian/t-prot mkdir -m755 debian/t-prot cd debian/t-prot && mkdir -m755 -p etc usr/bin usr/share/man/man1 \ usr/share/doc/t-prot/examples install -m644 -p debian/Muttrc.t-prot \ debian/t-prot/etc install -m755 -p t-prot \ debian/t-prot/usr/bin install -m644 -p t-prot.1 \ debian/t-prot/usr/share/man/man1 install -m644 -p BUGS TODO contrib/README.patches \ contrib/t-prot-r*-debug.diff contrib/t-prot-r*-ftr.diff \ README debian/t-prot/usr/share/doc/t-prot cp -pR muttrc.t-prot debian/footers debian/README.footers \ debian/t-prot/usr/share/doc/t-prot/examples install -m644 -p ChangeLog \ debian/t-prot/usr/share/doc/t-prot/changelog gzip -9 debian/t-prot/usr/share/doc/t-prot/changelog \ debian/t-prot/usr/share/man/man1/t-prot.1 \ debian/t-prot/usr/share/doc/t-prot/t-prot-r*-debug.diff find debian/t-prot -print0 2>/dev/null | xargs -0r \ chown --no-dereference 0.0 find debian/t-prot ! -type l -print0 2>/dev/null | xargs -0r \ chmod go=rX,u+rw,a-s binary-indep: build install $(checkdir) $(checkroot) mkdir -m755 -p debian/t-prot/DEBIAN install -m644 -p debian/copyright debian/README.Debian \ debian/t-prot/usr/share/doc/t-prot install -m644 -p debian/changelog \ debian/t-prot/usr/share/doc/t-prot/changelog.Debian gzip -9 debian/t-prot/usr/share/doc/t-prot/changelog.Debian install -m755 -p debian/postinst debian/prerm debian/postrm \ debian/config debian/t-prot/DEBIAN install -m644 -p debian/conffiles \ debian/t-prot/DEBIAN debconf-mergetemplate debian/templates debian/templates.* \ > debian/t-prot/DEBIAN/templates dpkg-gencontrol -ldebian/changelog -isp -pt-prot -Pdebian/t-prot cd debian/t-prot && find * -type f ! -regex '^DEBIAN/.*' -print0 | \ xargs -r0 md5sum > DEBIAN/md5sums dpkg --build debian/t-prot .. binary-arch: build install # We have nothing to do here. define checkdir test -f debian/rules endef define checkroot test root = "`whoami`" endef binary: binary-indep binary-arch .PHONY: build clean binary-indep binary-arch binary install