1 |
|
# Makefile for server |
2 |
|
# $Id$ |
3 |
|
|
4 |
< |
IDL = idl/.madeidl |
4 |
> |
include Config.inc |
5 |
|
|
6 |
< |
all : idl code |
6 |
> |
all : build |
7 |
|
|
8 |
< |
idl : $(IDL) |
9 |
< |
$(IDL) : idl/iscream.idl |
10 |
< |
cd idl && $(MAKE) all |
8 |
> |
genidl : |
9 |
> |
cd idl && $(MAKE) idl |
10 |
|
|
11 |
< |
code : |
11 |
> |
buildidl : genidl |
12 |
> |
cd idl && $(MAKE) build |
13 |
> |
|
14 |
> |
code : buildidl |
15 |
|
cd uk/ac/ukc/iscream && $(MAKE) all |
16 |
|
|
17 |
+ |
build : code |
18 |
+ |
cd build && $(MAKE) package |
19 |
+ |
|
20 |
+ |
run : build |
21 |
+ |
cd build && ./run.sh |
22 |
+ |
|
23 |
|
clean : |
24 |
|
cd idl && $(MAKE) clean |
25 |
+ |
cd build && $(MAKE) clean |
26 |
|
cd uk/ac/ukc/iscream && $(MAKE) clean |
27 |
+ |
rm -Rf $(BUILDCHECK) $(IDLCHECK) |
28 |
+ |
rm -Rf $(CVSBUILDTEMP) |
29 |
+ |
rm -Rf doc doctemp |
30 |
|
|
31 |
< |
update : |
32 |
< |
cvs -q -d /usr/local/proj/co600_10/cvs update |
31 |
> |
distclean : clean |
32 |
> |
cd $(BUILD) && rm -f $(CLPATH) |
33 |
> |
rm -f Config.inc |
34 |
|
|
35 |
< |
runclientinterface : |
36 |
< |
cd uk/ac/ukc/iscream/clientinterface && $(MAKE) all |
37 |
< |
java uk.ac.ukc.iscream.clientinterface.ClientInterfaceMain |
35 |
> |
install : build |
36 |
> |
@echo "-------------------------------------------------------" |
37 |
> |
@echo "Installing to $(INSTALL)" |
38 |
> |
@echo " copying $(PACKAGE) to $(INSTALL)" |
39 |
> |
mkdir -p $(INSTALL) |
40 |
> |
cp $(BUILD)/$(PACKAGE) $(INSTALL) |
41 |
> |
@echo " copying libs to $(INSTALL)/lib" |
42 |
> |
mkdir -p $(INSTALL)/lib |
43 |
> |
cp $(LIBDIR)/*.jar $(INSTALL)/lib |
44 |
> |
@echo " copying etc to $(INSTALL)/etc" |
45 |
> |
mkdir -p $(INSTALL)/etc |
46 |
> |
cp $(BUILD)/etc/default.properties $(INSTALL)/etc |
47 |
> |
cp $(BUILD)/etc/*.conf $(INSTALL)/etc |
48 |
> |
@echo "Completed install to $(INSTALL)" |
49 |
> |
@echo "-------------------------------------------------------" |
50 |
|
|
51 |
< |
runcore : |
52 |
< |
cd uk/ac/ukc/iscream/core && $(MAKE) all |
53 |
< |
java uk.ac.ukc.iscream.core.Core -l etc/default.properties |
51 |
> |
cvsbuild : |
52 |
> |
cvs -d $(CVSROOT) export -r $(REVISION) -d $(CVSBUILDTEMP) $(CVSSERVERMODULE) |
53 |
> |
cd $(CVSBUILDTEMP) && ./configure |
54 |
> |
cd $(CVSBUILDTEMP) && $(MAKE) build |
55 |
> |
cp $(CVSBUILDTEMP)/build/$(TARGZFILE) $(BUILD)/$(ARCNAME)-$(REVISION)$(TARGZEXT) |
56 |
> |
cp $(CVSBUILDTEMP)/build/$(ZIPFILE) $(BUILD)/$(ARCNAME)-$(REVISION)$(ZIPEXT) |
57 |
|
|
58 |
< |
rundbinterface : |
59 |
< |
cd uk/ac/ukc/iscream/dbinterface && $(MAKE) all |
60 |
< |
java uk.ac.ukc.iscream.dbinterface.DBInterfaceMain |
58 |
> |
javadoc : genidl |
59 |
> |
if test ! -d "$(DOCDIR)"; then mkdir $(DOCDIR); fi |
60 |
> |
if test ! -d "$(DOCTMPDIR)"; then mkdir $(DOCTMPDIR); fi |
61 |
> |
cp -R $(SERVERROOT)/uk $(SERVERROOT)/$(DOCTMPDIR) |
62 |
> |
cp -R $(SERVERROOT)/idl/uk $(SERVERROOT)/$(DOCTMPDIR) |
63 |
> |
javadoc -d $(SERVERROOT)/$(DOCDIR) -sourcepath $(SERVERROOT)/$(DOCTMPDIR) -classpath $(JCCLASSPATH) -author -version -private $(PKGLIST) |
64 |
> |
rm -Rf doctemp |
65 |
|
|
66 |
< |
runfiltermanager : |
35 |
< |
cd uk/ac/ukc/iscream/filtermanager && $(MAKE) all |
36 |
< |
java uk.ac.ukc.iscream.filtermanager.FilterManager |
37 |
< |
|
38 |
< |
runrootfilter : |
39 |
< |
cd uk/ac/ukc/iscream/rootfilter && $(MAKE) all |
40 |
< |
java uk.ac.ukc.iscream.rootfilter.RootFilterMain |
41 |
< |
|
42 |
< |
runfilter : |
43 |
< |
cd uk/ac/ukc/iscream/filter && $(MAKE) all |
44 |
< |
java uk.ac.ukc.iscream.filter.FilterMain $(NAME) |
66 |
> |
include $(MKINC) |