bindings/java/Makefile.am: Use $(srcdir) when specifying dependencies.
authorFlorian Forster <octo@collectd.org>
Sat, 23 May 2015 09:00:38 +0000 (11:00 +0200)
committerMarc Fournier <marc.fournier@camptocamp.com>
Tue, 26 May 2015 11:33:19 +0000 (13:33 +0200)
This fixes out-of-tree builds, like "make distcheck" does.

bindings/java/Makefile.am

index f8e936a..6a398cc 100644 (file)
@@ -24,7 +24,7 @@ EXTRA_DIST = org/collectd/api/CollectdConfigInterface.java \
             org/collectd/java/GenericJMX.java \
             org/collectd/java/JMXMemory.java
 
-java-build-stamp: org/collectd/api/*.java org/collectd/java/*.java
+java-build-stamp: $(srcdir)/org/collectd/api/*.java $(srcdir)/org/collectd/java/*.java
        $(JAVAC) -d "." "$(srcdir)/org/collectd/api"/*.java
        $(JAVAC) -d "." "$(srcdir)/org/collectd/java"/*.java
        mkdir -p .libs