ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/reports/DBReporter/Makefile
Revision: 1.7
Committed: Thu Feb 6 11:41:43 2003 UTC (21 years, 9 months ago) by tdb
Branch: MAIN
Changes since 1.6: +88 -35 lines
Log Message:
And the new style Makefile hits the DBReporter :-)

File Contents

# User Rev Content
1 tdb 1.5 # Makefile for dbreporter
2 tdb 1.7 # $Id$
3 pjm2 1.1
4 tdb 1.3 include Config.inc
5 pjm2 1.1
6 tdb 1.7 .PHONY : all
7     all : dist
8 tdb 1.3
9 tdb 1.7 ### Code Building
10    
11     .PHONY : build
12     build :
13 tdb 1.5 cd uk/org/iscream/cms/dbreporter && $(MAKE) all
14 tdb 1.7 cd $(BUILD) && $(MAKE) package
15    
16     ### Source, Doc, & Changelog
17    
18     .PHONY : src
19     src : $(SRCCHECK)
20 tdb 1.3
21 tdb 1.7 .PHONY : mksrc
22     mksrc :
23     if test ! -d "$(SRCDIR)"; then mkdir -p $(SRCDIR); fi
24     echo "CVS" > TAR_EXCLUDE_TMP
25     echo ".#*" >> TAR_EXCLUDE_TMP
26     echo "*.jar" >> TAR_EXCLUDE_TMP
27     echo ".done*" >> TAR_EXCLUDE_TMP
28     tar -cf - -X TAR_EXCLUDE_TMP $(SRCFILES) | ( cd $(SRCDIR) && tar -xf - )
29     rm -f TAR_EXCLUDE_TMP
30     @touch $(SRCCHECK)
31    
32     .PHONY : javadoc
33     javadoc : $(JAVADOCCHECK)
34    
35     .PHONY : mkjavadoc
36     mkjavadoc :
37     if test ! -d "$(DOCDIR)"; then mkdir -p $(DOCDIR); fi
38     $(JAVADOCBIN) -d $(DOCDIR) -sourcepath $(SOURCEROOT) -classpath $(JCCLASSPATH) -windowtitle $(JDTITLE) -author -version -private -use -header $(JDHEADER) -bottom $(JDBOTTOM) -linkoffline $(JDJAPI) $(JDJAPIC) $(PKGLIST)
39     @touch $(JAVADOCCHECK)
40    
41     .PHONY : changelog
42     changelog : $(CHANGELOG)
43    
44     .PHONY : mkchangelog
45     mkchangelog :
46     if [ -d $(SOURCEROOT)/CVS ]; then \
47     $(CVS2CL) $(CVS2CLFLAGS) > $(CHANGELOG); \
48     else \
49     echo "Can't generate ChangeLog from non-checked out copy." > $(CHANGELOG); \
50     fi
51    
52     ### Dist Making
53    
54     .PHONY : dist
55     dist :
56     cd $(BUILD) && $(MAKE) dist dest=$(DISTDEST)
57    
58     .PHONY : dist-bin
59     dist-bin :
60     cd $(BUILD) && $(MAKE) dist-bin dest=$(DISTDEST)
61    
62     ### Code Cleaning
63 tdb 1.3
64 tdb 1.7 .PHONY : clean
65 tdb 1.5 clean :
66 tdb 1.7 cd $(BUILD) && $(MAKE) clean ver=$(VERSION)
67 tdb 1.5 cd uk/org/iscream/cms/dbreporter && $(MAKE) clean
68 tdb 1.7 rm -f $(MCOMPILECHECK) $(JAVADOCCHECK) $(SRCCHECK)
69 tdb 1.3
70 tdb 1.7 .PHONY : distclean
71 tdb 1.3 distclean : clean
72     cd $(BUILD) && rm -f $(CLPATH)
73 tdb 1.7 rm -Rf $(APICACHE)
74 tdb 1.3 rm -f Config.inc
75    
76 tdb 1.7 ### Install
77    
78     .PHONY : install
79     install : $(MCOMPILECHECK) $(JAVADOCCHECK) $(CHANGELOG)
80 tdb 1.3 @echo "-------------------------------------------------------"
81 tdb 1.7 @echo "Installing to $(INSTALLPREFIX)"
82     @echo " copying $(PACKAGE) to $(INSTALLPREFIX)"
83     @mkdir -p $(INSTALLPREFIX)
84     @cp $(BUILD)/$(PACKAGE) $(INSTALLPREFIX)
85     @echo " copying libs to $(INSTALLPREFIX)/lib"
86     @mkdir -p $(INSTALLPREFIX)/lib
87     @cp $(LIBDIR)/*.jar $(INSTALLPREFIX)/lib
88     @echo " copying etc to $(INSTALLPREFIX)/etc"
89     @mkdir -p $(INSTALLPREFIX)/etc
90     @cp $(BUILD)/etc/*.properties $(INSTALLPREFIX)/etc
91     @cp $(BUILD)/etc/*.conf $(INSTALLPREFIX)/etc
92     @echo " copying scripts to $(INSTALLPREFIX)"
93     @cp $(BUILD)/run.sh $(INSTALLPREFIX)
94     @cp $(BUILD)/run.bat $(INSTALLPREFIX)
95     @echo " copying documention to $(INSTALLPREFIX)/doc"
96     @cp -R $(BUILD)/doc $(INSTALLPREFIX)
97     @echo " copying text information files to $(INSTALLPREFIX"
98     @cp $(BUILD)/COPYING $(CHANGELOG) $(INSTALLPREFIX)
99     @echo "Completed install to $(INSTALLPREFIX)"
100 tdb 1.3 @echo "-------------------------------------------------------"
101    
102 tdb 1.7 ### Other
103 tdb 1.3
104 tdb 1.7 .PHONY : run
105     run : $(MCOMPILECHECK)
106 tdb 1.3 cd $(BUILD) && ./run.sh
107 tdb 1.7
108     ### Global Include
109 tdb 1.3
110     include $(MKINC)