pjs/webtools/bonsai/Makefile.in

152 строки
3.8 KiB
Makefile

#!gmake
#
# The contents of this file are subject to the Netscape Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/NPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is the Bonsai CVS tool.
#
# The Initial Developer of the Original Code is Netscape Communications
# Corporation. Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
# This Makefile helps you install Bonsai. Define PERL to
# the full pathnames of where you have these utilities. Define PREFIX
# to where you will install the running Bonsai. Then "make install" should
# copy things for you.
# /usr/bin/perl
PERL = @PERL@
# /var/www/bonsai
PREFIX = @prefix@/bonsai
CVS=@CVS@
RLOG=@RLOG@
CO=@CO@
RCSDIFF=@RCSDIFF@
CVSGRAPH=@CVSGRAPH@
FILES = CGI.pl \
addcheckin.pl \
admin.cgi \
adminfuncs.pl \
adminmail.pl \
closemessage \
contacthelp.html \
countcheckins.cgi \
createlegaldirs.pl \
cvsblame.cgi \
cvsblame.pl \
cvsguess.cgi \
cvsgraph.cgi \
cvslog.cgi \
cvsquery.cgi \
cvsquery.pl \
cvsqueryform.cgi \
cvsregexp.html \
cvsview2.cgi \
defparams.pl \
doadmin.cgi \
doeditcheckin.cgi \
doeditmessage.cgi \
doeditparams.cgi \
doeditwhiteboard.cgi \
dolog.pl \
dotweak.cgi \
editcheckin.cgi \
editmessage.cgi \
editparams.cgi \
editwhiteboard.cgi \
get_line.pl \
globals.pl \
handleAdminMail.pl \
handleCheckinMail.pl \
index.html \
maketables.sh \
moduleanalyse.cgi \
modules.pl \
multidiff.cgi \
openmessage \
rebuildcvshistory.cgi \
repophook.cgi \
rview.cgi \
showcheckins.cgi \
switchtree.cgi \
toplevel.cgi \
viewold.cgi \
trapdoor
all: treeconfig.pl params
treeconfig.pl: treeconfig.pl.in
cp treeconfig.pl.in treeconfig.pl
params: params.in
sed -e s#_CVS_#$(CVS)#g \
-e s#_RLOG_#$(RLOG)#g \
-e s#_CO_#$(CO)#g \
-e s#_RCSDIFF_#$(RCSDIFF)#g \
-e s#_CVSGRAPH_#$(CVSGRAPH)#g \
$< >$@
install: all
-mkdir -p $(PREFIX)
@for I in $(FILES); do \
echo Installing $$I && \
sed -e s#/usr/bonsaitools/bin/perl#$(PERL)#g \
-e s#/tools/ns/bin/perl5#$(PERL)#g \
$$I > $(PREFIX)/$$I && \
chmod 755 $(PREFIX)/$$I; done
-mkdir -p $(PREFIX)/data && chmod 755 $(PREFIX)/data
cp bonsai.gif $(PREFIX)
chmod 755 $(PREFIX)/bonsai.gif
# put trapdoor into data
mv $(PREFIX)/trapdoor $(PREFIX)/data
@if test ! -r $(PREFIX)/data/treeconfig.pl ; then \
echo "Installing treeconfig.pl" && \
cp treeconfig.pl $(PREFIX)/data ; \
else \
echo ; \
echo "Not replacing existing treeconfig.pl" ; \
echo "Check treeconfig.pl in build directory for new features" ; \
fi
@if test ! -r $(PREFIX)/data/params ; then \
echo "Installing params" && \
cp params $(PREFIX)/data ; \
else \
echo ; \
echo "Not replacing existing params" ; \
fi
@if test ! -r $(PREFIX)/data/cvsgraph.conf ; then \
echo "Installing cvsgraph.conf" && \
cp cvsgraph.conf $(PREFIX)/data ; \
else \
echo ; \
echo "Not replacing existing cvsgraph.conf" ; \
fi
@echo
@echo "If you are updating an existing install, be sure to check"
@echo "editparams.cgi to see if there are any new things you should"
@echo "configure as this script will not overwrite your existing"
@echo "params file"
@echo
@echo "If you are installing a new Bonsai (not upgrading), you should"
@echo "run maketables.sh to create database tables, then customize the"
@echo "Bonsai configuration in $(PREFIX)/data/treeconfig.pl"
clean:
rm -f treeconfig.pl params
distclean: clean
rm -f config.cache config.log confdefs.h Makefile