ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/server/Makefile.inc
Revision: 1.14
Committed: Sat Feb 1 19:08:54 2003 UTC (21 years, 3 months ago) by tdb
Branch: MAIN
CVS Tags: HEAD
Changes since 1.13: +27 -13 lines
Log Message:
A continuation of my last commit on all this Makefile reworking. I think
I've managed to get the dependencies working quite well now. As long as
the builds are done from the top level Makefile it should all be fine. If
you try from, say, the build directory it might not notice things changing
in the source files.

File Contents

# User Rev Content
1 tdb 1.2 # Include Makefile for the server
2 tdb 1.14 # $Id: Makefile.inc,v 1.13 2003/01/26 14:02:52 tdb Exp $
3 tdb 1.2
4     ## Rule to CVS update the files
5 tdb 1.14 .PHONY : update
6 tdb 1.2 update :
7 tdb 1.7 $(CVS) -q -d $(CVSROOT) update
8 tdb 1.2
9     ## General Build Rule for Java Files
10 tdb 1.14 .PHONY : DOBUILD
11     DOBUILD : $(COMPILECHECK)
12 tdb 1.2
13 tdb 1.14 $(COMPILECHECK) : $(JAVA) $(IDLCHECK)
14     $(JAVACBIN) $(JCFLAGS) -classpath $(JCCLASSPATH) -d $(BUILD) $(JAVA)
15 tdb 1.2 @touch $(COMPILECHECK)
16 tdb 1.14 @touch $(MCOMPILECHECK)
17 tdb 1.2
18 tdb 1.14 .PHONY : DOCOPY
19 tdb 1.4 DOCOPY : $(COPYCHECK)
20    
21     $(COPYCHECK) : $(FILES)
22 tdb 1.11 cp $(FILES) `perl -e '$$root="$(SOURCEROOT)";$$path=\`pwd\`;$$path=~s/^$$root($$1)/$$1/;print "$(BUILD)".$$path;'`
23 tdb 1.4 @touch $(COPYCHECK)
24 tdb 1.14
25     .PHONY : DOCLEAN
26     DOCLEAN :
27     rm -f $(COMPILECHECK) $(COPYCHECK)
28    
29     $(IDLCHECK) : $(IDLFILE)
30     cd $(IDLDIR) && $(MAKE) all
31    
32     $(MCOMPILECHECK) :
33     cd $(SOURCEROOT) && $(MAKE) build
34    
35     $(SRCCHECK) :
36     cd $(SOURCEROOT) && $(MAKE) mksrc
37    
38     $(CHANGELOG) :
39     cd $(SOURCEROOT) && $(MAKE) mkchangelog
40    
41     $(JAVADOCCHECK) : $(IDLCHECK)
42     cd $(SOURCEROOT) && $(MAKE) mkjavadoc