projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bindings/Makefile: perl: Use INSTALL_BASE rather than PREFIX.
[collectd.git]
/
bindings
/
Makefile.am
diff --git
a/bindings/Makefile.am
b/bindings/Makefile.am
index
8d37c74
..
69312fd
100644
(file)
--- a/
bindings/Makefile.am
+++ b/
bindings/Makefile.am
@@
-1,26
+1,37
@@
-EXTRA_DIST = perl/Collectd.pm perl/Makefile.PL perl/Collectd/Makefile.PL perl/Collectd/Unixsock.pm
+SUBDIRS =
+
+if BUILD_WITH_JAVA
+SUBDIRS += java
+endif
+
+EXTRA_DIST = perl/Makefile.PL \
+ perl/lib/Collectd.pm \
+ perl/lib/Collectd/Unixsock.pm \
+ perl/lib/Collectd/Plugins/Monitorus.pm \
+ perl/lib/Collectd/Plugins/OpenVZ.pm
all-local: @PERL_BINDINGS@
install-exec-local:
all-local: @PERL_BINDINGS@
install-exec-local:
- [ ! -f perl/Makefile ] ||
$(MAKE) -C perl install
+ [ ! -f perl/Makefile ] ||
( cd perl && $(MAKE) install )
clean-local:
clean-local:
- [ ! -f perl/Makefile ] ||
$(MAKE) -C perl realclean
+ [ ! -f perl/Makefile ] ||
( cd perl && $(MAKE) realclean )
perl: perl/Makefile
perl: perl/Makefile
- $(MAKE) -C perl
+ cd perl && $(MAKE)
-perl/Makefile: .perl-directory-stamp perl/Makefile.PL perl/Collectd/Makefile.PL
- cd perl && @PERL@ Makefile.PL PREFIX=$(prefix) @PERL_BINDINGS_OPTIONS@
+perl/Makefile: .perl-directory-stamp perl/Makefile.PL \
+ $(top_builddir)/config.status
+ cd perl && @PERL@ Makefile.PL INSTALL_BASE=$(prefix) @PERL_BINDINGS_OPTIONS@
.perl-directory-stamp:
if test ! -d perl; then \
.perl-directory-stamp:
if test ! -d perl; then \
- mkdir -p perl/Collectd; \
+ mkdir -p perl/Collectd
/Plugins
; \
cp $(srcdir)/perl/Collectd.pm perl/; \
cp $(srcdir)/perl/Makefile.PL perl/; \
cp $(srcdir)/perl/Collectd/Unixsock.pm perl/Collectd/; \
cp $(srcdir)/perl/Collectd.pm perl/; \
cp $(srcdir)/perl/Makefile.PL perl/; \
cp $(srcdir)/perl/Collectd/Unixsock.pm perl/Collectd/; \
- cp $(srcdir)/perl/Collectd/
Makefile.PL perl/Collectd
/; \
+ cp $(srcdir)/perl/Collectd/
Plugins/OpenVZ.pm perl/Collectd/Plugins
/; \
fi
touch $@
fi
touch $@