forked from apache/cloudstack
-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathMakefile
More file actions
44 lines (33 loc) · 1006 Bytes
/
Makefile
File metadata and controls
44 lines (33 loc) · 1006 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Makefile to compile the Xen Java SDK bindings
BINDINGJAVAFILES := $(wildcard com/xensource/xenapi/*.java)
BINDINGCLASSFILES := $(BINDINGJAVAFILES:.java=.class)
BINDINGJAR := xenserver-5.6.100-1.jar
CLASSPATH := :../cloud-xmlrpc-client-3.1.3.jar:../cloud-xmlrpc-common-3.1.3.jar:../cloud-ws-commons-util-1.0.2.jar
EXAMPLECLASSPATH := :$(BINDINGJAR)$(CLASSPATH)
.PHONY: all
all: $(BINDINGJAR) tests
@ :
# Target to compile the automated tests
.PHONY: tests
tests: $(patsubst %.java,%.class,$(wildcard *.java))
@ :
.PHONY: docs
docs:
javadoc -classpath ${CLASSPATH} -d doc -link http://java.sun.com/javase/6/docs/api com/xensource/xenapi/*.java
%.class: %.java
javac -cp ${CLASSPATH} $^
$(BINDINGJAR): $(BINDINGCLASSFILES)
jar -cvf $@ com/xensource/xenapi/*.class
.PHONY: cleanclass
cleanclass:
rm -f com/xensource/xenapi/*.class
rm -f *.class
.PHONY: cleanjar
cleanjar:
rm -f $(BINDINGJAR)
.PHONY: cleandocs
cleandocs:
rm -rf doc
.PHONY: clean
clean: cleanjar cleanclass cleandocs
@ :