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.1
Committed: Tue Nov 14 01:40:49 2000 UTC (23 years, 6 months ago) by tdb
Branch: MAIN
Log Message:
Initial Makefile for the Filter. Will obviously need to be expanded as the
Filter section grows.

File Contents

# Content
1 # Makefile for Filter
2 # $Id: Makefile,v 1.2 2000/11/14 01:28:21 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
14 # Defining "shortcuts" for building
15
16 fm : $(FILTERMAN)
17 all : fm
18 package : $(FMPACKAGE)
19
20 clean :
21 rm -f $(FILTERMAN) $(FMPACKAGE)
22
23 run : $(FILTERMAN)
24 java FilterManager
25
26
27 # Dependencies, and building
28
29 FilterManager.class : FilterManager.java
30 javac FilterManager.java
31
32 FilterManagerListener.class : FilterManagerListener.java
33 javac FilterManagerListener.java
34
35 HostInit.class : HostInit.java
36 javac HostInit.java
37
38 $(FMPACKAGE) : $(FILTERMAN)
39 echo "Main-Class: FilterManager" > MANIFEST_FM_TMP
40 jar -cmf MANIFEST_FM_TMP $(FMPACKAGE) $(FILTERMAN)
41 rm -f MANIFEST_FM_TMP
42 @echo "----------------------------"
43 @echo "to run: java -jar $(PACKAGE)"
44 @echo "----------------------------"
45 @echo "WARNING: Need to sort Classpath"
46
47
48 # and the help :)
49
50 help :
51 @echo "Makefile usage [default: fm]"
52 @echo
53 @echo "make run - runs the filter manager programs"
54 @echo
55 @echo "make fm - builds the filter manager programs"
56 @echo "make all - builds all the programs"
57 @echo
58 @echo "make package - packages the filter manager programs into a JAR"
59 @echo
60 @echo "make clean - removes all the compiled files"
61 @echo