summaryrefslogtreecommitdiffstats
path: root/java/Makefile
blob: a6fb3dc68783a1ec1eb1f1a65c5dd6fda2d1e3be (plain)
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
#
# This file is part of rasdaman community.
#
# Rasdaman community is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Rasdaman community is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with rasdaman community.  If not, see <http://www.gnu.org/licenses/>.
#
# Copyright 2003, 2004, 2005, 2006, 2007, 2008, 2009 Peter Baumann /
# rasdaman GmbH.
#
# For more information please see <http://www.rasdaman.org>
# or contact Peter Baumann via <baumann@rasdaman.com>. # Top Level makefile. This points to the various modules that have to be build
# and/or deployed
# 
# MAKEFILE FOR:  
#   RasDaMan Java Client
# 
#
# COMMENTS: 
# 
##################################################################
######################### Definitions ############################

# standard include with general options
include $(RMANBASE)/Makefile.inc

########################### Targets ##############################

.PHONY: all rasj rnp rasj_jar rasdaview odmg clean docu rasj_docu rasdaview_docu odmg_docu empty java_release_docu examples test

# all
all:	rasj_jar examples rasdaview

# rasj jar file
rasj_jar: rasj odmg rnp
	$(JAR) -cf rasj.jar rasj/*.class rasj/clientcommhttp/*.class  rasj/odmg/*.class org/odmg/*.class rasj/global/*.class rasj/rnp/*.class

# batch test suite
.PHONY: systemtest
systemtest:
	cd rasj; $(MAKE) systemtest

# rasj
rasj:
	cd rasj; $(MAKE)

# odmg
odmg:
	cd org/odmg; $(MAKE)

# examples
examples:
	cd examples; $(MAKE)

# rasdaview
rasdaview:
	cd rasdaview; $(MAKE)

# delete classes .PHONY : clean
clean:
	cd rasj; $(MAKE) clean	
	cd rasdaview; $(MAKE) clean
	cd org/odmg; $(MAKE) clean
	cd examples; $(MAKE) clean
	-rm -rf rasj.jar

# --- documentation  -----------------------------------------------------------

# complete docu
# removed package insert (nonexisting), added test -- PB 2003-jun-28
docu:
	cd rasj; $(MAKE) docu

# rasj distribution docu
rasj_docu:
	mkdir -p $(RELEASEDOCDIR)/java
	$(JAVADOC) -breakiterator -author -d $(DOCDIR)/java -sourcepath $(RASBASE)/java rasj rasj.clientcommhttp \
		rasj.odmg rasj.global

# rasdaview docu
rasdaview_docu:
	mkdir -p $(DOCDIR)/rasdaview
	$(JAVADOC) -breakiterator -author -d $(DOCDIR)/rasdaview -sourcepath $(RASBASE)/java rasdaview

# ODMG docu
odmg_docu:
	mkdir -p $(DOCDIR)/org
	$(JAVADOC) -breakiterator -author -d $(DOCDIR)/org -sourcepath $(RASBASE)/java org.odmg
	chmod -R g+w $(DOCDIR)/org

# Java realeses docu
java_release_docu:
	-rm -rf $(RELEASEDOCBASE)/html/rasj
	mkdir -p  $(RELEASEDOCBASE)/html/rasj
	echo "<img src='logo-rasdaman.gif' height='100' border='none'><br>Java API v$(RMANVERSIONNAME)" \
		>javadocheader.html 
	$(JAVADOC) -breakiterator -author -public -splitindex -header "`cat javadocheader.html`" \
		-footer "`cat javadocfooter.html`" -windowtitle "rasdaman Java Doc" \
		-bottom "`cat javadocbottom.html`" -doctitle "`cat javadoctitle.html`" \
		-use -d $(RELEASEDOCBASE)/html/rasj  -sourcepath $(RMANBASE)/java org.odmg rasj \
		-stylesheetfile stylesheet.css
	chmod -R g+w $(RELEASEDOCBASE)/html/rasj

# following obsolete? -- PB 2006-jan-03

# examples docu
examples_docu:
	mkdir -p $(DOCDIR)/examples
	$(JAVADOC) -breakiterator -author -d $(DOCDIR)/examples -sourcepath $(RASBASE)/java examples
	chmod -R g+w $(DOCDIR)/examples

# insert docu
insert_docu:
	mkdir -p $(DOCDIR)/insert
	$(JAVADOC) -breakiterator -author -d $(DOCDIR)/insert -sourcepath $(RASBASE)/java insert

# --- rasview -----------------------------------------------------------------

# make rasview jar file
rasview_jar: rasj odmg rasdaview
	$(JAR) -cf rasview.jar rasj/*.class rasj/clientcommhttp/*.class  rasj/odmg/*.class org/odmg/*.class rasj/global/*.class rasdaview/*.class

# delete all files
empty:
	cd rasj; $(MAKE) empty
	cd rasdaview; $(MAKE) empty
	cd org/odmg; $(MAKE) empty

depend:
	echo "No dependecy is used for java"