memcached plugin: actually connect when using a unix socket
[collectd.git] / bindings / java / Makefile.am
1 EXTRA_DIST = org/collectd/api/CollectdConfigInterface.java \
2              org/collectd/api/CollectdFlushInterface.java \
3              org/collectd/api/CollectdInitInterface.java \
4              org/collectd/api/Collectd.java \
5              org/collectd/api/CollectdLogInterface.java \
6              org/collectd/api/CollectdMatchFactoryInterface.java \
7              org/collectd/api/CollectdMatchInterface.java \
8              org/collectd/api/CollectdNotificationInterface.java \
9              org/collectd/api/CollectdReadInterface.java \
10              org/collectd/api/CollectdShutdownInterface.java \
11              org/collectd/api/CollectdTargetFactoryInterface.java \
12              org/collectd/api/CollectdTargetInterface.java \
13              org/collectd/api/CollectdWriteInterface.java \
14              org/collectd/api/DataSet.java \
15              org/collectd/api/DataSource.java \
16              org/collectd/api/Notification.java \
17              org/collectd/api/OConfigItem.java \
18              org/collectd/api/OConfigValue.java \
19              org/collectd/api/PluginData.java \
20              org/collectd/api/ValueList.java \
21              org/collectd/java/GenericJMXConfConnection.java \
22              org/collectd/java/GenericJMXConfMBean.java \
23              org/collectd/java/GenericJMXConfValue.java \
24              org/collectd/java/GenericJMX.java \
25              org/collectd/java/JMXMemory.java
26
27 java-build-stamp: org/collectd/api/*.java org/collectd/java/*.java
28         $(JAVAC) -d "." "$(srcdir)/org/collectd/api"/*.java
29         $(JAVAC) -d "." "$(srcdir)/org/collectd/java"/*.java
30         mkdir -p .libs
31         $(JAR) cf .libs/collectd-api.jar "org/collectd/api"/*.class
32         $(JAR) cf .libs/generic-jmx.jar "org/collectd/java"/*.class
33         touch "$@"
34
35 all-local: java-build-stamp
36
37 install-exec-local: java-build-stamp
38         mkdir -p "$(DESTDIR)$(pkgdatadir)/java"
39         $(INSTALL) -m 644 .libs/collectd-api.jar \
40                 "$(DESTDIR)$(pkgdatadir)/java"
41         $(INSTALL) -m 644 .libs/generic-jmx.jar \
42                 "$(DESTDIR)$(pkgdatadir)/java"
43
44 clean-local:
45         rm -f "org/collectd/api"/*.class
46         rm -f "org/collectd/java"/*.class
47         rm -f .libs
48         rm -f "java-build-stamp"