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.4
Committed: Thu Nov 16 14:47:16 2000 UTC (23 years, 6 months ago) by tdb
Branch: MAIN
Changes since 1.3: +3 -1 lines
Log Message:
Added CVS features to the Makefile.

File Contents

# Content
1 # Makefile for Filter
2 # $Id: Makefile,v 1.3 2000/11/14 02:38:29 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 update :
34 cvs -q -d /usr/local/proj/co600_10/cvs update
35
36 # Dependencies, and building
37
38 #clever catchall to build any .class file from a .java file
39 %.class : %.java
40 javac $<
41
42 $(FMPACKAGE) : fm
43 echo "Main-Class: FilterManager" > MANIFEST_FM_TMP
44 jar -cmf MANIFEST_FM_TMP $(FMPACKAGE) $(FILTERMAN)
45 rm -f MANIFEST_FM_TMP
46 @echo "----------------------------"
47 @echo "to run: java -jar $(PACKAGE)"
48 @echo "----------------------------"
49 @echo "WARNING: Need to sort Classpath"
50
51 $(IDL) : ../iscream.idl
52 $(IDLMAKE)
53
54 # and the help :)
55
56 help :
57 @echo "Makefile usage [default: fm]"
58 @echo
59 @echo "make run - runs the filter manager programs"
60 @echo
61 @echo "make fm - builds the filter manager programs"
62 @echo "make all - builds all the programs"
63 @echo
64 @echo "make package - packages the filter manager programs into a JAR"
65 @echo
66 @echo "make clean - removes all the compiled files"
67 @echo "make distclean - removes all the compiled files, and the IDL created files"
68 @echo