ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/server/Makefile
Revision: 1.14
Committed: Tue Jan 23 02:08:13 2001 UTC (23 years, 9 months ago) by tdb
Branch: MAIN
Changes since 1.13: +3 -1 lines
Log Message:
If we're building another version, say a Release build, then we'll probably want
to be able to do the same for the iscream-util.jar package. This seems a nice
and easy way of doing that, without going to the hassle of doing a whole new
method. Although, I guess, that might get done in the end.

File Contents

# User Rev Content
1 tdb 1.1 # Makefile for server
2 tdb 1.14 # $Id: Makefile,v 1.13 2001/01/16 01:35:35 tdb1 Exp $
3 tdb 1.1
4 tdb 1.8 include Config.inc
5 tdb 1.1
6 tdb 1.8 all : build
7 tdb 1.1
8 tdb 1.11 genidl :
9 tdb 1.8 cd idl && $(MAKE) idl
10 tdb 1.1
11 tdb 1.11 buildidl : genidl
12 tdb 1.8 cd idl && $(MAKE) build
13    
14 tdb 1.13 code : genidl
15 tdb 1.3 cd uk/ac/ukc/iscream && $(MAKE) all
16 tdb 1.1
17 tdb 1.13 build : buildidl code
18 tdb 1.8 cd build && $(MAKE) package
19    
20     run : build
21 tdb 1.9 cd build && ./run.sh
22 tdb 1.8
23 tdb 1.1 clean :
24 tdb 1.3 cd idl && $(MAKE) clean
25 tdb 1.8 cd build && $(MAKE) clean
26 tdb 1.3 cd uk/ac/ukc/iscream && $(MAKE) clean
27 tdb 1.8 rm -Rf $(BUILDCHECK) $(IDLCHECK)
28     rm -Rf $(CVSBUILDTEMP)
29 tdb 1.11 rm -Rf doc doctemp
30 tdb 1.1
31 tdb 1.8 distclean : clean
32 tdb 1.10 cd $(BUILD) && rm -f $(CLPATH)
33 tdb 1.8 rm -f Config.inc
34    
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     cvsbuild :
52     cvs -d $(CVSROOT) export -r $(REVISION) -d $(CVSBUILDTEMP) $(CVSSERVERMODULE)
53     cd $(CVSBUILDTEMP) && ./configure
54 tdb 1.14 cd $(CVSBUILDTEMP) && $(MAKE) buildutil
55 tdb 1.8 cd $(CVSBUILDTEMP) && $(MAKE) build
56     cp $(CVSBUILDTEMP)/build/$(TARGZFILE) $(BUILD)/$(ARCNAME)-$(REVISION)$(TARGZEXT)
57     cp $(CVSBUILDTEMP)/build/$(ZIPFILE) $(BUILD)/$(ARCNAME)-$(REVISION)$(ZIPEXT)
58 tdb 1.14 cp $(CVSBUILDTEMP)/build/$(UTILPACKAGE) $(BUILD)
59 tdb 1.11
60     javadoc : genidl
61     if test ! -d "$(DOCDIR)"; then mkdir $(DOCDIR); fi
62     if test ! -d "$(DOCTMPDIR)"; then mkdir $(DOCTMPDIR); fi
63     cp -R $(SERVERROOT)/uk $(SERVERROOT)/$(DOCTMPDIR)
64     cp -R $(SERVERROOT)/idl/uk $(SERVERROOT)/$(DOCTMPDIR)
65 tdb 1.12 javadoc -d $(SERVERROOT)/$(DOCDIR) -sourcepath $(SERVERROOT)/$(DOCTMPDIR) -classpath $(JCCLASSPATH) -author -version -private $(PKGLIST)
66 tdb 1.11 rm -Rf doctemp
67 tdb 1.13
68     buildutil : genidl
69     cd uk/ac/ukc/iscream/util && $(MAKE) all
70     cd build && $(MAKE) packageutil
71 tdb 1.5
72 tdb 1.8 include $(MKINC)