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.7 by ajm, Mon Nov 20 17:11:44 2000 UTC

# Line 3 | Line 3
3  
4   # For help type: make help
5  
6 +
7   # Defining Filenames
8  
9 < CORE = Core.class ConfiguratorServant.class ConfigurationServant.class\
10 <       ScreenLoggerServant.class FileLoggerServant.class
9 > CORE = Core.class ConfigurationManagerServant.class ConfigurationServant.class\
10 >       ScreenLoggerServant.class FileLoggerServant.class\
11 >       MultiLoggerServant.class
12  
11 COREDEPS = Core.java ConfiguratorServant.java ConfigurationServant.java\
12           ScreenLoggerServant.java FileLoggerServant.java
13
13   SAMPLE = SampleConfigObtainer.class
14  
16 SAMPLEDEPS = SampleConfigObtainer.java
17
15   PACKAGE = Core.jar
16  
17 < # Defining "shortcuts"
17 > IDL = ../.madeidl
18 > IDLFILES = ../uk
19 > IDLMAKE = cd .. && $(MAKE) idl
20  
21 < core : $(CORE)
22 < sample : $(SAMPLE)
21 > # Defining "shortcuts" for building
22 >
23 > core : $(IDL) $(CORE)
24 > sample : $(IDL) $(SAMPLE)
25   all : core sample
26   package : $(PACKAGE)
27  
28 < # What is actually done
28 > clean :
29 >        rm -f $(CORE) $(SAMPLE) $(PACKAGE)
30  
31 < $(CORE) : $(COREDEPS)
32 <        javac $(COREDEPS)
31 > distclean : clean
32 >        rm -Rf $(IDLFILES)
33 >        rm -f $(IDL)
34  
35 < $(SAMPLE) : $(SAMPLEDEPS)
36 <        javac $(SAMPLEDEPS)
35 > run : core
36 >        java Core
37  
38 < $(PACKAGE) : $(CORE)
38 > update :
39 >        cvs -q -d /usr/local/proj/co600_10/cvs update
40 >
41 > # Dependencies, and building
42 >
43 > #clever catchall to build any .class file from a .java file
44 > %.class : %.java
45 >        javac $<
46 >
47 > $(PACKAGE) : core
48          echo "Main-Class: Core" > MANIFEST_CORE_TMP
49          jar -cmf MANIFEST_CORE_TMP $(PACKAGE) $(CORE)
50          rm -f MANIFEST_CORE_TMP
51          @echo "----------------------------"
52          @echo "to run: java -jar $(PACKAGE)"
53          @echo "----------------------------"
54 +        @echo "WARNING: Need to sort Classpath"
55  
56 < clean :
57 <        rm -f $(CORE) $(SAMPLE) $(PACKAGE)
56 > $(IDL) : ../iscream.idl
57 >        $(IDLMAKE)
58  
46 run : $(CORE)
47        java Core
59  
60   # and the help :)
61  
62   help :
63          @echo "Makefile usage [default: core]"
64          @echo
65 <        @echo "make run     - runs the core programs"
65 >        @echo "make run       - runs the core programs"
66          @echo
67 <        @echo "make core    - builds the core programs"
68 <        @echo "make sample  - builds the sample program"
69 <        @echo "make all     - builds both the core and sample"
67 >        @echo "make core      - builds the core programs"
68 >        @echo "make sample    - builds the sample program"
69 >        @echo "make all       - builds both the core and sample"
70          @echo
71 <        @echo "make package - packages the core programs into a JAR"
71 >        @echo "make package   - packages the core programs into a JAR"
72          @echo
73 <        @echo "make clean   - removes all the compiled files"
73 >        @echo "make clean     - removes all the compiled files"
74 >        @echo "make distclean - removes all the compiled files, and the IDL created files"
75          @echo

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines