projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'collectd-4.1' into collectd-4.2
[collectd.git]
/
bindings
/
Makefile.am
diff --git
a/bindings/Makefile.am
b/bindings/Makefile.am
index
37e31ea
..
16872e8
100644
(file)
--- a/
bindings/Makefile.am
+++ b/
bindings/Makefile.am
@@
-11,8
+11,16
@@
clean-local:
perl: perl/Makefile
$(MAKE) -C perl
perl: perl/Makefile
$(MAKE) -C perl
-perl/Makefile: perl/Makefile.PL perl/Collectd/Makefile.PL
+perl/Makefile:
.perl-directory-stamp
perl/Makefile.PL perl/Collectd/Makefile.PL
cd perl && @PERL@ Makefile.PL PREFIX=$(prefix) @PERL_BINDINGS_OPTIONS@
cd perl && @PERL@ Makefile.PL PREFIX=$(prefix) @PERL_BINDINGS_OPTIONS@
+.perl-directory-stamp:
+ if test ! -d perl; then \
+ mkdir -p perl/Collectd; \
+ cp $(srcdir)/perl/{Collectd.pm,Makefile.PL} perl/; \
+ cp $(srcdir)/perl/Collectd/{Unixsock.pm,Makefile.PL} perl/Collectd/; \
+ fi
+ touch $@
+
.PHONY: perl
.PHONY: perl