[Pkg-openldap-devel] [openldap] 02/03: Mark the build target in debian/rules as phony

Ryan Tandy rtandy-guest at moszumanska.debian.org
Sun Jan 3 01:21:26 UTC 2016


This is an automated email from the git hooks/post-receive script.

rtandy-guest pushed a commit to branch master
in repository openldap.

commit e783a37674eabb5990a902b8fa3ac18194c50725
Author: Ryan Tandy <ryan at nardis.ca>
Date:   Sun Jan 3 00:16:57 2016 +0000

    Mark the build target in debian/rules as phony
    
    "debian/rules build" wasn't working because the upstream source includes
    a build/ directory, causing Make to always consider it up-to-date.
    
    After making build phony, it has to also be made an explicit target,
    because Make does not consider phony targets for implicit rules.
    
    The explicit build target has to be separated from the existing pattern
    rule, because Make 3.82 and later do not permit mixing explicit and
    implicit targets in a single rule.
---
 debian/changelog | 2 ++
 debian/rules     | 6 +++++-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index 3f4a0db..ce25024 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -10,6 +10,8 @@ openldap (2.4.43+dfsg-1) UNRELEASED; urgency=medium
   * Update debian/schema/ppolicy.schema to add the pwdMaxRecordedFailure 
     attribute.
   * Update libldap-2.4-2.symbols with new ldap_build_*_req symbols.
+  * Mark the build target in debian/rules as phony, since the upstream source 
+    includes a build/ directory.
 
  -- Ryan Tandy <ryan at nardis.ca>  Thu, 31 Dec 2015 14:08:53 -0800
 
diff --git a/debian/rules b/debian/rules
index 7864c9c..e8edabf 100755
--- a/debian/rules
+++ b/debian/rules
@@ -61,8 +61,12 @@ get-orig-source:
 	rm -r openldap-$(VERSION)+dfsg
 	gzip -9 openldap_$(VERSION)+dfsg.orig.tar
 
+DH = dh $@ --with autoreconf --builddirectory=$(builddir) --parallel
+.PHONY: build
+build:
+	$(DH)
 %:
-	dh $@ --with autoreconf --builddirectory=$(builddir) --parallel
+	$(DH)
 
 # Only contrib/ldapc++ uses Automake, so special care is needed to update
 # config.guess and config.sub at the top level.

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-openldap/openldap.git



More information about the Pkg-openldap-devel mailing list