1 |
# Include Config for the dbreporter |
2 |
# $Id: Config2.inc,v 1.14 2003/02/21 13:45:48 tdb Exp $ |
3 |
|
4 |
include $(SOURCEROOT)/Version.inc |
5 |
|
6 |
# Name of our dist |
7 |
DISTNAME = iscream_dbreporter |
8 |
|
9 |
# Location of the i-scream CVS Repository Root |
10 |
CVSROOT = :pserver:anonymous@cvs.i-scream.org.uk:/cvs/i-scream |
11 |
|
12 |
# This will attempt to locate cvs, and return the path. |
13 |
CVS = `if test -x /usr/bin/cvs; then echo /usr/bin/cvs; else if test -x /usr/local/bin/cvs; then echo /usr/local/bin/cvs; else echo cvs; fi fi` |
14 |
|
15 |
# and the same for cvs2cl |
16 |
CVS2CL = `if test -x /usr/bin/cvs2cl; then echo /usr/bin/cvs2cl; else if test -x /usr/local/bin/cvs2cl; then echo /usr/local/bin/cvs2cl; else echo cvs2cl; fi fi` |
17 |
# and flags for cvs2cl |
18 |
CVS2CLFLAGS = --stdout --no-wrap -r -t -w -S -g "-d $(CVSROOT)" -g "-q" |
19 |
|
20 |
# and the same for gpg |
21 |
GPG = `if test -x /usr/bin/gpg; then echo /usr/bin/gpg; else if test -x /usr/local/bin/gpg; then echo /usr/local/bin/gpg; else echo gpg; fi fi` |
22 |
# and flags for gpg |
23 |
GPGFLAGS = -abs --default-key=0x135D6B0A |
24 |
|
25 |
# Binary to run for javac and javadoc |
26 |
JAVACBIN = javac |
27 |
JAVADOCBIN = javadoc |
28 |
|
29 |
# Location of the build directory |
30 |
BUILDDIRNAME = build |
31 |
BUILD = $(SOURCEROOT)/$(BUILDDIRNAME) |
32 |
# Relative (to BUILD) location of the libraries |
33 |
LIBDIR = $(BUILD)/lib |
34 |
# Location of the main include |
35 |
MKINC = $(SOURCEROOT)/Makefile.inc |
36 |
|
37 |
# Compiler Information |
38 |
JCLIBS = $(LIBDIR)/jaxp.jar:$(LIBDIR)/crimson.jar:$(LIBDIR)/mm.mysql-2.0.11-bin.jar:$(LIBDIR)/iscream_util.jar:$(LIBDIR)/Acme.jar |
39 |
JCCLASSPATH = $(JCLIBS):$(SOURCEROOT):$(BUILD):. |
40 |
# set JCFLAGS to these if you want to optimise and turn off debugging |
41 |
#JCFLAGS = -g:none -O |
42 |
JCFLAGS = |
43 |
|
44 |
# Name of JAR file (will be created in BUILD) |
45 |
PACKAGE = $(DISTNAME).jar |
46 |
# Main-class to be added to the Manifest |
47 |
MAINCLASS = uk.org.iscream.cms.dbrepoter.DBReporterMain |
48 |
# Class-path to be added to the Manifest |
49 |
CLPATH = lib/jaxp.jar lib/mm.mysql-2.0.11-bin.jar lib/crimson.jar lib/iscream_util.jar lib/Acme.jar |
50 |
|
51 |
# CHECK Files (for dependencies) |
52 |
MCOMPILECHECK = $(SOURCEROOT)/$(COMPILECHECK) |
53 |
SRCCHECK = $(SOURCEROOT)/.donesrc |
54 |
JAVADOCCHECK = $(SOURCEROOT)/.donejavadoc |
55 |
MKDISTCHECK = $(BUILD)/.donemkdist |
56 |
MKDISTBINCHECK = $(BUILD)/.donemkdistbin |
57 |
MKDISTFILESCHECK = $(BUILD)/.donemkdistfiles |
58 |
MKDISTFILESBINCHECK = $(BUILD)/.donemkdistfilesbin |
59 |
COMPILECHECK = .donecompile |
60 |
COPYCHECK = .donecopy |
61 |
|
62 |
# Javadoc package list |
63 |
PKGLIST = uk.org.iscream.cms.dbreporter |
64 |
|
65 |
# Javadoc formatting |
66 |
JDTITLE = "i-scream CMS DBReporter" |
67 |
JDHEADER = "<img src='http://www.i-scream.org.uk/i-scream_small.gif' width='146' height='38'>" |
68 |
JDBOTTOM = "<i>Copyright &\#169; 2000-2003 i-scream. All Rights Reserved.</i>" |
69 |
|
70 |
# Javadoc Directories |
71 |
DOCDIR = $(BUILD)/doc |
72 |
APICACHE = $(SOURCEROOT)/.api-cache |
73 |
|
74 |
# Javadoc API linking |
75 |
JDJAPI = "http://java.sun.com/j2se/1.4.1/docs/api/" |
76 |
JDUAPI = "http://www.i-scream.org.uk/javadoc/util/" |
77 |
|
78 |
# Javadoc API cache |
79 |
JDJAPIC = $(APICACHE)/jdk |
80 |
JDUAPIC = $(APICACHE)/util |
81 |
|
82 |
# ChangeLog file |
83 |
CHANGELOG = $(BUILD)/ChangeLog |
84 |
|
85 |
# Directory to put the source code in |
86 |
SRCDIR = $(BUILD)/src |
87 |
# Files to be included in the source code dist |
88 |
SRCFILES = Config2.inc Makefile Makefile.inc build.config \ |
89 |
build.xml configure uk COPYING Version.inc \ |
90 |
$(BUILDDIRNAME)/etc \ |
91 |
$(BUILDDIRNAME)/lib $(BUILDDIRNAME)/run.bat \ |
92 |
$(BUILDDIRNAME)/run.sh $(BUILDDIRNAME)/Makefile |
93 |
|
94 |
# License file |
95 |
LICFILE = COPYING |
96 |
|
97 |
# User configurable options - defaults |
98 |
dest = $(BUILD) |
99 |
prefix = /opt/$(DISTNAME)-$(VERSION) |
100 |
|
101 |
# Install Prefix |
102 |
INSTALLPREFIX = $(prefix) |
103 |
DISTDEST = $(dest) |
104 |
|
105 |
# Archive extensions |
106 |
TAREXT = .tar |
107 |
TARGZEXT = .tar.gz |
108 |
ZIPEXT = .zip |
109 |
SIGEXT = .asc |
110 |
|
111 |
# Subdirectory the dist should be in |
112 |
DISTDIR = $(DISTNAME)-$(VERSION) |
113 |
|
114 |
# Name of various distfiles |
115 |
TARFILE = $(DISTNAME)-$(VERSION)$(TAREXT) |
116 |
TARGZFILE = $(DISTNAME)-$(VERSION)$(TARGZEXT) |
117 |
TARGZFILESIG = $(TARGZFILE)$(SIGEXT) |
118 |
ZIPFILE = $(DISTNAME)-$(VERSION)$(ZIPEXT) |
119 |
ZIPFILESIG = $(ZIPFILE)$(SIGEXT) |
120 |
BINTARFILE = $(DISTNAME)-bin-$(VERSION)$(TAREXT) |
121 |
BINTARGZFILE = $(DISTNAME)-bin-$(VERSION)$(TARGZEXT) |
122 |
BINTARGZFILESIG = $(BINTARGZFILE)$(SIGEXT) |
123 |
BINZIPFILE = $(DISTNAME)-bin-$(VERSION)$(ZIPEXT) |
124 |
BINZIPFILESIG = $(BINZIPFILE)$(SIGEXT) |