git.annexia.org
/
libguestfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make it possible to build in a separate directory
[libguestfs.git]
/
perl
/
Makefile.am
diff --git
a/perl/Makefile.am
b/perl/Makefile.am
index
44ac42c
..
66d1d4b
100644
(file)
--- a/
perl/Makefile.am
+++ b/
perl/Makefile.am
@@
-36,15
+36,17
@@
if HAVE_PERL
TESTS = run-bindtests run-perl-tests
TESTS_ENVIRONMENT = \
TESTS = run-bindtests run-perl-tests
TESTS_ENVIRONMENT = \
- LD_LIBRARY_PATH=
..
/src/.libs \
- LIBGUESTFS_PATH=
..
/appliance
+ LD_LIBRARY_PATH=
$(top_builddir)
/src/.libs \
+ LIBGUESTFS_PATH=
$(top_builddir)
/appliance
INSTALLDIRS = site
INSTALLDIRS = site
-all:
- perl Makefile.PL INSTALLDIRS=$(INSTALLDIRS) PREFIX=$(prefix)
+all: Makefile-pl
$(MAKE) -f Makefile-pl
$(MAKE) -f Makefile-pl
+Makefile-pl: Makefile.PL
+ perl Makefile.PL INSTALLDIRS=$(INSTALLDIRS) PREFIX=$(prefix)
+
install-data-hook:
$(MAKE) -f Makefile-pl DESTDIR=$(DESTDIR) install
install-data-hook:
$(MAKE) -f Makefile-pl DESTDIR=$(DESTDIR) install