gecko-dev/webtools/bonsai/Makefile.in

153 строки
3.7 KiB
Makefile

#!gmake
#
# The contents of this file are subject to the Netscape Public License
# Version 1.0 (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.
# This Makefile helps you install Bonsai. Define PERL and MYSQLTCL 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.
CC = @CC@
CFLAGS = @CFLAGS@
# -lcrypt
LDFLAGS = @LIBS@
# /usr/bin/perl
PERL = @PERL@
# /usr/local/src/mysqltcl-1.53/mysqltclsh
MYSQLTCL = @MYSQLTCL@
# /var/www/bonsai
PREFIX = @prefix@/bonsai
CVS=@CVS@
RLOG=@RLOG@
CO=@CO@
RCSDIFF=@RCSDIFF@
SENDMAIL=@SENDMAIL@
FILES = CGI.tcl \
SourceChecker.cgi \
SourceChecker.pm \
addcheckin.tcl \
admin.cgi \
adminfuncs.tcl \
adminmail.tcl \
branchspam.cgi \
branchspammer.cgi \
changebar.tcl \
closemessage \
contacthelp.html \
countcheckins.cgi \
createlegaldirs.tcl \
cvsblame.cgi \
cvsblame.pl \
cvsguess.cgi \
cvsindex.pl \
cvslog.cgi \
cvsmenu.pl \
cvsquery.cgi \
cvsquery.pl \
cvsqueryform.cgi \
cvsregexp.html \
cvsview2.cgi \
doadmin.cgi \
doeditcheckin.cgi \
doeditmessage.cgi \
doeditprofile.cgi \
doeditwhiteboard.cgi \
dolog.pl \
dotweak.cgi \
editcheckin.cgi \
editmessage.cgi \
editprofile.cgi \
editwhiteboard.cgi \
globals.tcl \
handleAdminMail.tcl \
handleCheckinMail.tcl \
header.pl \
index.html \
indextest.pl \
lloydcgi.pl \
localprofile.cgi \
maketables.sh \
moduleanalyse.cgi \
modules.pl \
multidiff.cgi \
myglobrecur.tcl \
openmessage \
perlifyconfig.tcl \
processqueue.pl \
profile.cgi \
rebuildcvshistory.cgi \
rebuilddatabase.tcl \
rebuildtaginfo.cgi \
repophook.cgi \
reposfiles.pl \
rview.cgi \
show2.cgi \
showcheckins.cgi \
switchtree.cgi \
testlock.pl \
toplevel.cgi \
utils.pl \
viewold.cgi
all: trapdoor configdata
trapdoor: trapdoor.o
$(CC) -o trapdoor trapdoor.o $(LDFLAGS)
configdata: configdata.in
sed -e s#_CVS_#$(CVS)#g \
-e s#_RLOG_#$(RLOG)#g \
-e s#_CO_#$(CO)#g \
-e s#_RCSDIFF_#$(RCSDIFF)#g \
-e s#_SENDMAIL_#$(SENDMAIL)#g \
$< >$@
install: trapdoor configdata
-mkdir -p $(PREFIX)
@for I in $(FILES); do \
echo Installing $$I && \
sed -e s#/usr/bonsaitools/bin/perl#$(PERL)#g \
-e s#/usr/bonsaitools/bin/mysqltcl#$(MYSQLTCL)#g \
-e s#/usr/lib/sendmail#$(SENDMAIL)#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 trapdoor $(PREFIX)/data
cp bonsai.gif $(PREFIX)
chmod 755 $(PREFIX)/bonsai.gif
@if test ! -r $(PREFIX)/data/configdata ; then \
echo "Installing configdata" && \
cp configdata $(PREFIX)/data ; \
else \
echo ; \
echo "Not replacing existing configdata" ; \
echo "Check configdata in build directory for new features" ; \
fi
@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/configdata"
clean:
rm -f trapdoor trapdoor.o configdata