#!/usr/bin/make -f
# debian/rules for t-prot package
+# Copyright 2002-2009 by Gerfried Fuchs <rhonda@debian.at>
+# Licenced BSD style
PKG = t-prot
TMP = $(CURDIR)/debian/$(PKG)
INSTALL_DIR = $(INSTALL) -p -d -oroot -groot -m755
-clean:
+include /usr/share/quilt/quilt.make
+
+clean: unpatch
$(checkdir)
$(checkroot)
- -rm -rf $(TMP) debian/files
+ -rm -rf $(TMP) debian/files build-stamp
-build:
+build-stamp: build
+build: patch
# uhm, build for a binary-indep package? Don't try to be funny ;)
+ touch build-stamp
install: build
$(checkroot)
$(INSTALL_DIR) $(TMP)/DEBIAN
$(INSTALL_FILE) debian/copyright debian/README.Debian \
- debian/NEWS.Debian $(TMP)/usr/share/doc/$(PKG)
+ $(TMP)/usr/share/doc/$(PKG)
$(INSTALL_FILE) debian/changelog \
$(TMP)/usr/share/doc/$(PKG)/changelog.Debian
cd $(TMP)/usr/share/doc/$(PKG) && gzip -9 \
- changelog.Debian NEWS.Debian
+ changelog.Debian
$(INSTALL_SCRIPT) debian/postinst debian/postrm debian/config \
$(TMP)/DEBIAN
po2debconf debian/templates > $(TMP)/DEBIAN/templates
dpkg --build $(TMP) ..
-binary-arch: build install
+binary-arch:
# We have nothing to do here.
-binary: binary-indep binary-arch
+binary: binary-indep
define checkdir