X-Git-Url: https://git.deb.at/?a=blobdiff_plain;f=debian%2Frules;h=1ae31255517d40fcf24ad9254e0e6a61bba10656;hb=e7a838deb0eafa1276a944e57f3b309c4e1b9dd4;hp=12fc3de8be96c0c521a92cd010f4a985afb01ca9;hpb=ea1861c197b63523f945dbfc8c41ba3c53a8e49c;p=pkg%2Ft-prot.git diff --git a/debian/rules b/debian/rules index 12fc3de..1ae3125 100755 --- a/debian/rules +++ b/debian/rules @@ -1,5 +1,7 @@ #!/usr/bin/make -f # debian/rules for t-prot package +# Copyright 2002-2012 by Gerfried Fuchs +# Licenced under WTFPLv2 PKG = t-prot TMP = $(CURDIR)/debian/$(PKG) @@ -14,14 +16,20 @@ INSTALL_DIR = $(INSTALL) -p -d -oroot -groot -m755 clean: $(checkdir) $(checkroot) - -rm -rf $(TMP) debian/files + -rm -rf $(TMP) debian/files debian/stamp-* + $(MAKE) -f /usr/share/quilt/quilt.make unpatch +build: build-arch build-indep +build-arch: debian/stamp-build +build-indep: debian/stamp-build +debian/stamp-build: + # only thing to do is apply the patches ... + $(MAKE) -f /usr/share/quilt/quilt.make patch + touch debian/stamp-build -build: - # uhm, build for a binary-indep package? Don't try to be funny ;) - -install: build +install: debian/stamp-install +debian/stamp-install: build $(checkdir) $(checkroot) -rm -rf $(TMP) @@ -44,7 +52,7 @@ install: build $(INSTALL_FILE) TODO README $(TMP)/usr/share/doc/$(PKG) #$(INSTALL_FILE) contrib/README.patches contrib/t-prot-r*-gol.diff \ - # contrib/t-prot-r*-indentms.diff \ + # \ # $(TMP)/usr/share/doc/$(PKG)/contrib $(INSTALL_FILE) contrib/filter_innd.pl contrib/README.examples \ $(TMP)/usr/share/doc/$(PKG)/examples @@ -54,16 +62,16 @@ install: build man/man1/t-prot.1 -binary-indep: build install +binary-indep: install $(checkdir) $(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 @@ -75,11 +83,11 @@ binary-indep: build install 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