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
Revision: 1.3
Committed: Tue Nov 14 02:38:29 2000 UTC (23 years, 6 months ago) by tdb
Branch: MAIN
Changes since 1.2: +18 -8 lines
Log Message:
Included compiling the IDL file in the Makefile.

File Contents

# Content
1 # Makefile for Filter
2 # $Id: Makefile,v 1.2 2000/11/14 01:53:56 tdb1 Exp $
3
4 # For help type: make help
5
6
7 # Defining Filenames
8
9 FILTERMAN = FilterManager.class FilterManagerListener.class HostInit.class
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 : $(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 #clever catchall to build any .class file from a .java file
37 %.class : %.java
38 javac $<
39
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
44 @echo "----------------------------"
45 @echo "to run: java -jar $(PACKAGE)"
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"
58 @echo
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"
63 @echo
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