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.2 by tdb, Tue Nov 14 01:28:21 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
10 >           ScreenLoggerServant.class FileLoggerServant.class
11  
11 COREDEPS = Core.java ConfiguratorServant.java ConfigurationServant.java\
12           ScreenLoggerServant.java FileLoggerServant.java
13
12   SAMPLE = SampleConfigObtainer.class
13  
16 SAMPLEDEPS = SampleConfigObtainer.java
17
14   PACKAGE = Core.jar
15  
20 # Defining "shortcuts"
16  
17 + # Defining "shortcuts" for building
18 +
19   core : $(CORE)
20   sample : $(SAMPLE)
21   all : core sample
22   package : $(PACKAGE)
23  
24 < # What is actually done
24 > clean :
25 >        rm -f $(CORE) $(SAMPLE) $(PACKAGE)
26  
27 < $(CORE) : $(COREDEPS)
28 <        javac $(COREDEPS)
27 > run : $(CORE)
28 >        java Core
29  
32 $(SAMPLE) : $(SAMPLEDEPS)
33        javac $(SAMPLEDEPS)
30  
31 + # Dependencies, and building
32 +
33 + Core.class : Core.java
34 +        javac Core.java
35 +
36 + ConfiguratorServant.class : ConfiguratorServant.java
37 +        javac ConfiguratorServant.java
38 +
39 + ConfigurationServant.class : ConfigurationServant.java
40 +        javac ConfiguratorServant.java
41 +
42 + ScreenLogger.class : ScreenLogger.java
43 +        javac ScreenLogger.java
44 +
45 + FileLogger.class : FileLogger.java
46 +        javac FileLogger.java
47 +
48 + SampleConfigObtainer.class : SampleConfigObtainer.java
49 +        javac SampleConfigObtainer.java
50 +
51   $(PACKAGE) : $(CORE)
52          echo "Main-Class: Core" > MANIFEST_CORE_TMP
53          jar -cmf MANIFEST_CORE_TMP $(PACKAGE) $(CORE)
# Line 39 | Line 55 | $(PACKAGE) : $(CORE)
55          @echo "----------------------------"
56          @echo "to run: java -jar $(PACKAGE)"
57          @echo "----------------------------"
58 +        @echo "WARNING: Need to sort Classpath"
59  
43 clean :
44        rm -f $(CORE) $(SAMPLE) $(PACKAGE)
45
46 run : $(CORE)
47        java Core
60  
61   # and the help :)
62  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines