1 |
tdb |
1.3 |
# Makefile for server |
2 |
|
|
# $Id: Makefile,v 1.21 2001/03/14 23:25:17 tdb1 Exp $ |
3 |
pjm2 |
1.1 |
|
4 |
tdb |
1.3 |
include Config.inc |
5 |
pjm2 |
1.1 |
|
6 |
tdb |
1.3 |
JAVA = ChartDataWriter.java DBReporter.java DBReporterMain.java\ |
7 |
|
|
DBReporterSettings.java DatabaseRemover.java DateUtils.java\ |
8 |
|
|
IscreamChart.java IscreamChartWriter.java IscreamColour.java\ |
9 |
|
|
IscreamFilePlacer.java PairData.java PlotData.java Report.java\ |
10 |
|
|
ReportList.java ReportMaker.java SHTMLLayout.java SHTMLWriter.java |
11 |
|
|
|
12 |
|
|
FILES = DBReporter.properties reportlist.conf |
13 |
|
|
|
14 |
|
|
all : build |
15 |
|
|
|
16 |
|
|
build : DOBUILD DOCOPY |
17 |
|
|
cd $(BUILD) && $(MAKE) all |
18 |
|
|
|
19 |
|
|
clean : DOCLEAN |
20 |
|
|
cd build && $(MAKE) clean |
21 |
|
|
rm -Rf $(BUILDCHECK) $(IDLCHECK) |
22 |
|
|
rm -Rf $(CVSBUILDTEMP) |
23 |
|
|
rm -Rf $(DOCDIR) |
24 |
|
|
|
25 |
|
|
distclean : clean |
26 |
|
|
cd $(BUILD) && rm -f $(CLPATH) |
27 |
|
|
rm -f Config.inc |
28 |
|
|
|
29 |
|
|
install : build |
30 |
|
|
@echo "-------------------------------------------------------" |
31 |
|
|
@echo "Installing to $(INSTALL)" |
32 |
|
|
@echo " copying $(PACKAGE) to $(INSTALL)" |
33 |
|
|
mkdir -p $(INSTALL) |
34 |
|
|
cp $(BUILD)/$(PACKAGE) $(INSTALL) |
35 |
|
|
@echo " copying libs to $(INSTALL)/lib" |
36 |
|
|
mkdir -p $(INSTALL)/lib |
37 |
|
|
cp $(LIBDIR)/*.jar $(INSTALL)/lib |
38 |
|
|
@echo " copying configuration files to $(INSTALL)" |
39 |
|
|
cd $(BUILD) && cp $(FILES) $(INSTALL) |
40 |
|
|
@echo "Completed install to $(INSTALL)" |
41 |
|
|
@echo "-------------------------------------------------------" |
42 |
|
|
|
43 |
|
|
cvsbuild : |
44 |
|
|
$(CVS) -d $(CVSROOT) export -r $(REVISION) -d $(CVSBUILDTEMP) $(CVSMODULE) |
45 |
|
|
cd $(CVSBUILDTEMP) && ./configure |
46 |
|
|
cd $(CVSBUILDTEMP) && $(MAKE) build |
47 |
|
|
cp $(CVSBUILDTEMP)/build/$(TARGZFILE) $(BUILD)/$(ARCNAME)-$(REVISION)$(TARGZEXT) |
48 |
|
|
cp $(CVSBUILDTEMP)/build/$(ZIPFILE) $(BUILD)/$(ARCNAME)-$(REVISION)$(ZIPEXT) |
49 |
|
|
|
50 |
|
|
javadoc : |
51 |
|
|
if test ! -d "$(DOCDIR)"; then mkdir $(DOCDIR); fi |
52 |
|
|
javadoc -d $(SOURCEROOT)/$(DOCDIR) -classpath $(JCCLASSPATH) -author -version -private $(JAVA) |
53 |
|
|
|
54 |
|
|
run : build |
55 |
|
|
cd $(BUILD) && ./run.sh |
56 |
|
|
|
57 |
|
|
include $(MKINC) |