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.3 by tdb, Tue Nov 14 01:53:51 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 + #clever catchall to build any .class file from a .java file
34 + %.class : %.java
35 +        javac $<
36 +
37   $(PACKAGE) : $(CORE)
38          echo "Main-Class: Core" > MANIFEST_CORE_TMP
39          jar -cmf MANIFEST_CORE_TMP $(PACKAGE) $(CORE)
# Line 39 | Line 41 | $(PACKAGE) : $(CORE)
41          @echo "----------------------------"
42          @echo "to run: java -jar $(PACKAGE)"
43          @echo "----------------------------"
44 +        @echo "WARNING: Need to sort Classpath"
45  
43 clean :
44        rm -f $(CORE) $(SAMPLE) $(PACKAGE)
45
46 run : $(CORE)
47        java Core
46  
47   # and the help :)
48  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines