1 |
|
# Include Makefile for the server |
2 |
|
# $Id$ |
3 |
|
|
4 |
+ |
## Rule to CVS update the files |
5 |
|
update : |
6 |
< |
cvs -q -d $(CVSROOT) update |
6 |
> |
$(CVS) -q -d $(CVSROOT) update |
7 |
|
|
8 |
< |
%.class : %.java |
9 |
< |
javac -g:none -O -d $(BUILD) $< |
8 |
> |
## Rule for making and compiling the IDL files |
9 |
> |
$(IDLCHECK) : $(SERVERROOT)/idl/iscream.idl |
10 |
> |
cd $(SERVERROOT)/idl && $(MAKE) build |
11 |
> |
rm -f $(COMPILECHECK) |
12 |
|
|
13 |
< |
IDLMAKE = cd $(SERVERROOT) && $(MAKE) buildidl |
13 |
> |
## General Build Rule for Java Files |
14 |
> |
DOBUILD : $(IDLCHECK) $(COMPILECHECK) |
15 |
|
|
16 |
< |
$(IDL) : $(SERVERROOT)/idl/iscream.idl |
17 |
< |
$(IDLMAKE) |
16 |
> |
$(COMPILECHECK) : $(JAVA) |
17 |
> |
javac $(JCFLAGS) -classpath $(JCCLASSPATH) -d $(BUILD) $? |
18 |
> |
@touch $(BUILDCHECK) |
19 |
> |
@touch $(COMPILECHECK) |
20 |
> |
|
21 |
> |
DOCLEAN : |
22 |
> |
rm -f $(COMPILECHECK) $(COPYCHECK) |
23 |
> |
|
24 |
> |
DOCOPY : $(COPYCHECK) |
25 |
> |
|
26 |
> |
$(COPYCHECK) : $(FILES) |
27 |
> |
cp $(FILES) `perl -e '$$root="$(SERVERROOT)";$$path=\`pwd\`;$$path=~s/^$$root($$1)/$$1/;print "$(BUILD)".$$path;'` |
28 |
> |
@touch $(COPYCHECK) |