1 |
# Makefile for corbaservices |
2 |
# $Id: Makefile,v 1.2 2001/01/24 03:41:07 tdb1 Exp $ |
3 |
|
4 |
include Config.inc |
5 |
|
6 |
all : build |
7 |
|
8 |
code : |
9 |
cd uk/ac/ukc/iscream && $(MAKE) all |
10 |
|
11 |
build : code |
12 |
cd build && $(MAKE) package |
13 |
|
14 |
run : build |
15 |
cd build && ./run.sh |
16 |
|
17 |
clean : |
18 |
cd build && $(MAKE) clean |
19 |
cd uk/ac/ukc/iscream && $(MAKE) clean |
20 |
rm -Rf $(BUILDCHECK) |
21 |
rm -Rf $(CVSBUILDTEMP) |
22 |
rm -Rf doc |
23 |
|
24 |
distclean : clean |
25 |
cd $(BUILD) && rm -f $(CLPATH) |
26 |
rm -f Config.inc |
27 |
|
28 |
install : build |
29 |
@echo "-------------------------------------------------------" |
30 |
@echo "Installing to $(INSTALL)" |
31 |
@echo " copying $(PACKAGE) to $(INSTALL)" |
32 |
mkdir -p $(INSTALL) |
33 |
cp $(BUILD)/$(PACKAGE) $(INSTALL) |
34 |
@echo " copying libs to $(INSTALL)/lib" |
35 |
mkdir -p $(INSTALL)/lib |
36 |
cp $(LIBDIR)/*.jar $(INSTALL)/lib |
37 |
@echo " copying scripts to $(INSTALL)" |
38 |
cp $(BUILD)/run.sh $(INSTALL) |
39 |
cp $(BUILD)/run.bat $(INSTALL) |
40 |
@echo "Completed install to $(INSTALL)" |
41 |
@echo "-------------------------------------------------------" |
42 |
|
43 |
cvsbuild : |
44 |
cvs -d $(CVSROOT) export -r $(REVISION) -d $(CVSBUILDTEMP) $(CVSMODULE) |
45 |
cd $(CVSBUILDTEMP) && ./configure |
46 |
cd $(CVSBUILDTEMP) && $(MAKE) build |
47 |
cp $(CVSBUILDTEMP)/build/$(TARGZFILE) $(BUILD)/$(ARCNAME)-$(REVISION)$(TARGZEXT) |
48 |
cp $(CVSBUILDTEMP)/build/$(ZIPFILE) $(BUILD)/$(ARCNAME)-$(REVISION)$(ZIPEXT) |
49 |
|
50 |
javadoc : |
51 |
if test ! -d "$(DOCDIR)"; then mkdir $(DOCDIR); fi |
52 |
javadoc -d $(SOURCEROOT)/$(DOCDIR) -sourcepath $(SOURCEROOT) -classpath $(JCCLASSPATH) -author -version -private $(PKGLIST) |
53 |
|
54 |
include $(MKINC) |