You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by zw...@apache.org on 2013/07/22 21:50:20 UTC

git commit: TS-2046 Assure that sudo make install does not rebuild in source tree, also assure all files are created / used in the right build tree

Updated Branches:
  refs/heads/master 6a9f74294 -> 922af5d0d


TS-2046 Assure that sudo make install does not rebuild in source tree, also assure all files are created / used in the right build tree


Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/922af5d0
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/922af5d0
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/922af5d0

Branch: refs/heads/master
Commit: 922af5d0d37f62f8e389a486d101e1ac699ca7c5
Parents: 6a9f742
Author: Leif Hedstrom <zw...@apache.org>
Authored: Mon Jul 22 13:50:11 2013 -0600
Committer: Leif Hedstrom <zw...@apache.org>
Committed: Mon Jul 22 13:50:14 2013 -0600

----------------------------------------------------------------------
 lib/perl/Makefile.am | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/922af5d0/lib/perl/Makefile.am
----------------------------------------------------------------------
diff --git a/lib/perl/Makefile.am b/lib/perl/Makefile.am
index d55a80d..be6ea76 100644
--- a/lib/perl/Makefile.am
+++ b/lib/perl/Makefile.am
@@ -16,13 +16,16 @@
 #  See the License for the specific language governing permissions and
 #  limitations under the License.
 
-all-local: $(srcdir)/Makefile.PL
-	-[ $(srcdir) != $(builddir) ] && cp -r $(abs_srcdir)/. $(builddir)/.
-	$(PERL) $(srcdir)/Makefile.PL INSTALLDIRS=$(INSTALLDIRS) PREFIX=$(prefix)
+all-local: Makefile-pl
+	$(MAKE) -f Makefile-pl INSTALLDIRS=$(INSTALLDIRS) PREFIX=$(prefix) DESTDIR=$(DESTDIR)
 
 install-exec-local: Makefile-pl
 	$(MAKE) -f Makefile-pl INSTALLDIRS=$(INSTALLDIRS) PREFIX=$(prefix) DESTDIR=$(DESTDIR) install
 
+Makefile-pl: Makefile.PL
+	-[ $(srcdir) != $(builddir) ] && cp -rf $(abs_srcdir)/. $(builddir)/.
+	$(PERL) Makefile.PL INSTALLDIRS=$(INSTALLDIRS) PREFIX=$(prefix)
+
 #test: check
 
 #check-local: Makefile-pl