ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/server/uk/org/iscream/cms/server/filter/Makefile
(Generate patch)

Comparing projects/cms/source/server/uk/org/iscream/cms/server/filter/Makefile (file contents):
Revision 1.1 by tdb, Tue Nov 14 01:40:49 2000 UTC vs.
Revision 1.3 by tdb, Tue Nov 14 02:38:29 2000 UTC

# Line 10 | Line 10 | FILTERMAN = FilterManager.class FilterManagerListener.
10  
11   FMPACKAGE = FilterManager.jar
12  
13 + IDL = ../.madeidl
14 + IDLFILES = ../uk
15 + IDLMAKE = cd .. && $(MAKE) idl
16  
17   # Defining "shortcuts" for building
18  
19 < fm : $(FILTERMAN)
19 > fm : $(IDL) $(FILTERMAN)
20   all : fm
21   package : $(FMPACKAGE)
22  
23   clean :
24          rm -f $(FILTERMAN) $(FMPACKAGE)
25  
26 + distclean : clean
27 +        rm -Rf $(IDLFILES)
28 +        rm -f $(IDL)
29 +
30   run : $(FILTERMAN)
31          java FilterManager
32  
33  
34   # Dependencies, and building
35  
36 < FilterManager.class : FilterManager.java
37 <        javac FilterManager.java
36 > #clever catchall to build any .class file from a .java file
37 > %.class : %.java
38 >        javac $<
39  
40 < FilterManagerListener.class : FilterManagerListener.java
33 <        javac FilterManagerListener.java
34 <
35 < HostInit.class : HostInit.java
36 <        javac HostInit.java
37 <
38 < $(FMPACKAGE) : $(FILTERMAN)
40 > $(FMPACKAGE) : fm
41          echo "Main-Class: FilterManager" > MANIFEST_FM_TMP
42          jar -cmf MANIFEST_FM_TMP $(FMPACKAGE) $(FILTERMAN)
43          rm -f MANIFEST_FM_TMP
# Line 44 | Line 46 | $(FMPACKAGE) : $(FILTERMAN)
46          @echo "----------------------------"
47          @echo "WARNING: Need to sort Classpath"
48  
49 + $(IDL) : ../iscream.idl
50 +        $(IDLMAKE)
51  
52   # and the help :)
53  
54   help :
55          @echo "Makefile usage [default: fm]"
56          @echo
57 <        @echo "make run     - runs the filter manager programs"
57 >        @echo "make run       - runs the filter manager programs"
58          @echo
59 <        @echo "make fm      - builds the filter manager programs"
60 <        @echo "make all     - builds all the programs"
59 >        @echo "make fm        - builds the filter manager programs"
60 >        @echo "make all       - builds all the programs"
61          @echo
62 <        @echo "make package - packages the filter manager programs into a JAR"
62 >        @echo "make package   - packages the filter manager programs into a JAR"
63          @echo
64 <        @echo "make clean   - removes all the compiled files"
64 >        @echo "make clean     - removes all the compiled files"
65 >        @echo "make distclean - removes all the compiled files, and the IDL created files"
66          @echo

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines