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.4 by tdb, Tue Nov 14 02:33:25 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
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  
16 < # Defining "shortcuts"
16 > IDL = ../.madeidl
17 > IDLFILES = ../uk
18 > IDLMAKE = cd .. && $(MAKE) idl
19  
20 < core : $(CORE)
21 < sample : $(SAMPLE)
20 > # Defining "shortcuts" for building
21 >
22 > core : $(IDL) $(CORE)
23 > sample : $(IDL) $(SAMPLE)
24   all : core sample
25   package : $(PACKAGE)
26  
27 < # What is actually done
27 > clean :
28 >        rm -f $(CORE) $(SAMPLE) $(PACKAGE)
29  
30 < $(CORE) : $(COREDEPS)
31 <        javac $(COREDEPS)
30 > distclean : clean
31 >        rm -Rf $(IDLFILES)
32 >        rm -f $(IDL)
33  
34 < $(SAMPLE) : $(SAMPLEDEPS)
35 <        javac $(SAMPLEDEPS)
34 > run : core
35 >        java Core
36  
37 < $(PACKAGE) : $(CORE)
37 >
38 > # Dependencies, and building
39 >
40 > #clever catchall to build any .class file from a .java file
41 > %.class : %.java
42 >        javac $<
43 >
44 > $(PACKAGE) : core
45          echo "Main-Class: Core" > MANIFEST_CORE_TMP
46          jar -cmf MANIFEST_CORE_TMP $(PACKAGE) $(CORE)
47          rm -f MANIFEST_CORE_TMP
48          @echo "----------------------------"
49          @echo "to run: java -jar $(PACKAGE)"
50          @echo "----------------------------"
51 +        @echo "WARNING: Need to sort Classpath"
52  
53 < clean :
54 <        rm -f $(CORE) $(SAMPLE) $(PACKAGE)
53 > $(IDL) : ../iscream.idl
54 >        $(IDLMAKE)
55  
46 run : $(CORE)
47        java Core
56  
57   # and the help :)
58  
59   help :
60          @echo "Makefile usage [default: core]"
61          @echo
62 <        @echo "make run     - runs the core programs"
62 >        @echo "make run       - runs the core programs"
63          @echo
64 <        @echo "make core    - builds the core programs"
65 <        @echo "make sample  - builds the sample program"
66 <        @echo "make all     - builds both the core and sample"
64 >        @echo "make core      - builds the core programs"
65 >        @echo "make sample    - builds the sample program"
66 >        @echo "make all       - builds both the core and sample"
67          @echo
68 <        @echo "make package - packages the core programs into a JAR"
68 >        @echo "make package   - packages the core programs into a JAR"
69          @echo
70 <        @echo "make clean   - removes all the compiled files"
70 >        @echo "make clean     - removes all the compiled files"
71 >        @echo "make distclean - removes all the compiled files, and the IDL created files"
72          @echo

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines