ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/server/uk/org/iscream/cms/server/core/Makefile
(Generate patch)

Comparing projects/cms/source/server/uk/org/iscream/cms/server/core/Makefile (file contents):
Revision 1.1 by tdb, Tue Nov 14 01:10:36 2000 UTC vs.
Revision 1.12 by tdb, Wed Nov 29 23:40:55 2000 UTC

# Line 1 | Line 1
1 < # Makefile for CORE
1 > # Makefile for uk.ac.ukc.iscream.core
2   # $Id$
3  
4 # For help type: make help
5
4   # Defining Filenames
5  
6 < CORE = Core.class ConfiguratorServant.class ConfigurationServant.class\
7 <       ScreenLoggerServant.class FileLoggerServant.class
6 > CLASS = CircularIncludeException.class ConfigurationManagerServant.class\
7 >        ConfigurationServant.class Core.class\
8 >        LoggerImpl.class LoggerServant.class
9  
10 < COREDEPS = Core.java ConfiguratorServant.java ConfigurationServant.java\
11 <           ScreenLoggerServant.java FileLoggerServant.java
10 > IDL = ../../../../../idl/.madeidl
11 > IDLFILES = ../../../../../idl/uk
12 > IDLMAKE = cd ../../../../.. && $(MAKE) idl
13  
14 < SAMPLE = SampleConfigObtainer.class
14 > # Defining "shortcuts" for building
15  
16 < SAMPLEDEPS = SampleConfigObtainer.java
16 > all : core loggers
17  
18 < PACKAGE = Core.jar
18 > core : $(IDL) $(CLASS)
19  
20 < # Defining "shortcuts"
20 > loggers : mkloggers
21 > mkloggers :
22 >        cd loggers && $(MAKE) all
23  
22 core : $(CORE)
23 sample : $(SAMPLE)
24 all : core sample
25 package : $(PACKAGE)
26
27 # What is actually done
28
29 $(CORE) : $(COREDEPS)
30        javac $(COREDEPS)
31
32 $(SAMPLE) : $(SAMPLEDEPS)
33        javac $(SAMPLEDEPS)
34
35 $(PACKAGE) : $(CORE)
36        echo "Main-Class: Core" > MANIFEST_CORE_TMP
37        jar -cmf MANIFEST_CORE_TMP $(PACKAGE) $(CORE)
38        rm -f MANIFEST_CORE_TMP
39        @echo "----------------------------"
40        @echo "to run: java -jar $(PACKAGE)"
41        @echo "----------------------------"
42
24   clean :
25 <        rm -f $(CORE) $(SAMPLE) $(PACKAGE)
25 >        rm -f $(CLASS)
26 >        cd loggers && $(MAKE) clean
27  
28 < run : $(CORE)
29 <        java Core
28 > update :
29 >        cvs -q -d /usr/local/proj/co600_10/cvs update -d
30  
31 < # and the help :)
31 > # Dependencies, and building
32  
33 < help :
34 <        @echo "Makefile usage [default: core]"
35 <        @echo
36 <        @echo "make run     - runs the core programs"
37 <        @echo
38 <        @echo "make core    - builds the core programs"
57 <        @echo "make sample  - builds the sample program"
58 <        @echo "make all     - builds both the core and sample"
59 <        @echo
60 <        @echo "make package - packages the core programs into a JAR"
61 <        @echo
62 <        @echo "make clean   - removes all the compiled files"
63 <        @echo
33 > # clever catchall to build any .class file from a .java file
34 > %.class : %.java
35 >        javac $<
36 >
37 > $(IDL) : ../../../../../idl/iscream.idl
38 >        $(IDLMAKE)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines