cluster: STABLE3 - build: fix out-of-tree build of fence agents
Fabio M. Di Nitto
fabbione at fedoraproject.org
Mon Feb 15 05:36:53 UTC 2010
Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=81a5044a9ef1c8483f761cde80da7d72466873d1
Commit: 81a5044a9ef1c8483f761cde80da7d72466873d1
Parent: 055f365d0bb4146ee59997682dcb35e526a92c15
Author: Fabio M. Di Nitto <fdinitto at redhat.com>
AuthorDate: Mon Feb 15 06:29:51 2010 +0100
Committer: Fabio M. Di Nitto <fdinitto at redhat.com>
CommitterDate: Mon Feb 15 06:29:51 2010 +0100
build: fix out-of-tree build of fence agents
Signed-off-by: Fabio M. Di Nitto <fdinitto at redhat.com>
---
make/fencebuild.mk | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/make/fencebuild.mk b/make/fencebuild.mk
index 63ad035..30cd26b 100644
--- a/make/fencebuild.mk
+++ b/make/fencebuild.mk
@@ -35,5 +35,9 @@ $(MANTARGET): $(MANTARGET:.8=) ${SRCDIR}/fence/agents/lib/fence2man.xsl
clean: generalclean
rm -f $(MANTARGET) .$(MANTARGET).tmp
else
-clean: generalclean
+$(MANTARGET): $(S)/$(MANTARGET)
+ cp $< $@
+
+clean: generalclean
+ if [ "$(OBJDIR)" != "$(SRCDIR)" ]; then rm -f $(MANTARGET); fi
endif
More information about the cluster-commits
mailing list