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.2
Committed: Tue Nov 14 01:53:56 2000 UTC (23 years, 6 months ago) by tdb
Branch: MAIN
Changes since 1.1: +4 -9 lines
Log Message:
Found a tidier way to build any .class from from it's corresponding .java file.

File Contents

# User Rev Content
1 tdb 1.1 # Makefile for Filter
2 tdb 1.2 # $Id: Makefile,v 1.1 2000/11/14 01:40:49 tdb1 Exp $
3 tdb 1.1
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 tdb 1.2 #clever catchall to build any .class file from a .java file
30     %.class : %.java
31     javac $<
32 tdb 1.1
33     $(FMPACKAGE) : $(FILTERMAN)
34     echo "Main-Class: FilterManager" > MANIFEST_FM_TMP
35     jar -cmf MANIFEST_FM_TMP $(FMPACKAGE) $(FILTERMAN)
36     rm -f MANIFEST_FM_TMP
37     @echo "----------------------------"
38     @echo "to run: java -jar $(PACKAGE)"
39     @echo "----------------------------"
40     @echo "WARNING: Need to sort Classpath"
41    
42    
43     # and the help :)
44    
45     help :
46     @echo "Makefile usage [default: fm]"
47     @echo
48     @echo "make run - runs the filter manager programs"
49     @echo
50     @echo "make fm - builds the filter manager programs"
51     @echo "make all - builds all the programs"
52     @echo
53     @echo "make package - packages the filter manager programs into a JAR"
54     @echo
55     @echo "make clean - removes all the compiled files"
56     @echo