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.11 by tdb, Mon Nov 27 22:07:19 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
6
4   # Defining Filenames
5  
6 < CORE = Core.class ConfigurationManagerServant.class ConfigurationServant.class\
7 <       LoggerServant.class LoggerImpl.class ScreenLogger.class\
8 <       FileLogger.class MultiLogger.class SimpleGUILogger.class\
12 <       SimpleSwingLogger.class CircularIncludeException.class
6 > CLASS = CircularIncludeException.class ConfigurationManagerServant.class\
7 >        ConfigurationServant.class Core.class\
8 >        LoggerImpl.class LoggerServant.class
9  
10 < SAMPLE = SampleConfigObtainer.class
10 > IDL = ../../../../../idl/.madeidl
11 > IDLFILES = ../../../../../idl/uk
12 > IDLMAKE = cd ../../../../.. && $(MAKE) idl
13  
14 < PACKAGE = Core.jar
14 > # Defining "shortcuts" for building
15  
16 < IDL = ../.madeidl
19 < IDLFILES = ../uk
20 < IDLMAKE = cd .. && $(MAKE) idl
16 > all : core loggers
17  
18 < # Defining "shortcuts" for building
18 > core : $(IDL) $(CLASS)
19  
20 < core : $(IDL) $(CORE)
21 < sample : $(IDL) $(SAMPLE)
22 < all : core sample
27 < package : $(PACKAGE)
20 > loggers : mkloggers
21 > mkloggers :
22 >        cd loggers && $(MAKE) all
23  
24   clean :
25 <        rm -f $(CORE) $(SAMPLE) $(PACKAGE)
25 >        rm -f $(CLASS)
26 >        cd loggers && $(MAKE) clean
27  
32 distclean : clean
33        rm -Rf $(IDLFILES)
34        rm -f $(IDL)
35
36 run : core
37        java Core
38
28   update :
29 <        cvs -q -d /usr/local/proj/co600_10/cvs update
29 >        cvs -q -d /usr/local/proj/co600_10/cvs update -d
30  
31   # Dependencies, and building
32  
33 < #clever catchall to build any .class file from a .java file
33 > # clever catchall to build any .class file from a .java file
34   %.class : %.java
35          javac $<
36  
37 < $(PACKAGE) : core
49 <        echo "Main-Class: Core" > MANIFEST_CORE_TMP
50 <        jar -cmf MANIFEST_CORE_TMP $(PACKAGE) $(CORE)
51 <        rm -f MANIFEST_CORE_TMP
52 <        @echo "----------------------------"
53 <        @echo "to run: java -jar $(PACKAGE)"
54 <        @echo "----------------------------"
55 <        @echo "WARNING: Need to sort Classpath"
56 <
57 < $(IDL) : ../iscream.idl
37 > $(IDL) : ../../../../../idl/iscream.idl
38          $(IDLMAKE)
59
60
61 # and the help :)
62
63 help :
64        @echo "Makefile usage [default: core]"
65        @echo
66        @echo "make run       - runs the core programs"
67        @echo
68        @echo "make core      - builds the core programs"
69        @echo "make sample    - builds the sample program"
70        @echo "make all       - builds both the core and sample"
71        @echo
72        @echo "make package   - packages the core programs into a JAR"
73        @echo
74        @echo "make clean     - removes all the compiled files"
75        @echo "make distclean - removes all the compiled files, and the IDL created files"
76        @echo

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines