This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
deb-mbse/script/Makefile
2004-01-25 10:57:35 +00:00

93 lines
4.2 KiB
Makefile

# Makefile for MBSE BBS under Linux
# $Id$
include ../Makefile.global
OTHER = Makefile README maint midnight weekly monthly installinit.sh setup.mbse \
bbsdoor.sh rundoor.sh init.Debian init.RedHat init.FreeBSD init.NetBSD \
init.Slackware init.SuSE init.Gentoo hatch editor.in bbsjoerc bbsjmacsrc
####################################################################################################
all:
clean:
rm -f core filelist Makefile.bak
install:
@if [ "`id -un`" != "root" ] ; then \
echo; echo " Must be root to install!"; echo; exit 3; \
fi
@if [ ! -x ${ETCDIR}/maint ]; then \
${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0744 maint ${ETCDIR} ; \
echo "${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0744 maint ${ETCDIR}" ; \
else \
${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0644 maint ${ETCDIR}/maint.new ; \
echo "${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0644 maint ${ETCDIR}/maint.new" ; \
fi
@if [ ! -x ${ETCDIR}/midnight ]; then \
${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0744 midnight ${ETCDIR} ; \
echo "${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0744 midnight ${ETCDIR}" ; \
else \
${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0644 midnight ${ETCDIR}/midnight.new ; \
echo "${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0644 midnight ${ETCDIR}/midnight.new" ; \
fi
@if [ ! -x ${ETCDIR}/weekly ]; then \
${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0744 weekly ${ETCDIR} ; \
echo "${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0744 weekly ${ETCDIR}" ; \
else \
${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0644 weekly ${ETCDIR}/weekly.new ; \
echo "${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0644 weekly ${ETCDIR}/weekly.new" ; \
fi
@if [ ! -x ${ETCDIR}/monthly ]; then \
${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0744 monthly ${ETCDIR} ; \
echo "${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0744 monthly ${ETCDIR}" ; \
else \
${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0644 monthly ${ETCDIR}/monthly.new ; \
echo "${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0644 monthly ${ETCDIR}/monthly.new" ; \
fi
@if [ ! -x ${BINDIR}/hatch ]; then \
${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0744 hatch ${BINDIR} ; \
echo "${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0744 hatch ${BINDIR}" ; \
else \
${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0644 hatch ${BINDIR}/hatch.new ; \
echo "${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0644 hatch ${BINDIR}/hatch/new" ; \
fi
@if [ -x ${JOEBIN}/joe ]; then \
echo "Installing support for joe editor" ; \
rm -f ${JOEBIN}/bbsjoe ; \
rm -f ${JOEBIN}/bbsjmacs ; \
echo "ln -s ${JOEBIN}/joe ${JOEBIN}/bbsjoe" ; \
ln -s ${JOEBIN}/joe ${JOEBIN}/bbsjoe ; \
echo "ln -s ${JOEBIN}/joe ${JOEBIN}/bbsjmacs" ; \
ln -s ${JOEBIN}/joe ${JOEBIN}/bbsjmacs ; \
${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0755 editor ${BINDIR} ; \
echo "${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0755 editor ${BINDIR}" ; \
fi
@if [ -d ${JOELIB} ]; then \
${INSTALL} -c -o ${ROWNER} -g ${RGROUP} -m 0644 bbsjoerc ${JOELIB} ; \
echo "${INSTALL} -c -o ${ROWNER} -g ${RGROUP} -m 0644 bbsjoerc ${JOELIB}" ; \
${INSTALL} -c -o ${ROWNER} -g ${RGROUP} -m 0644 bbsjmacsrc ${JOELIB} ; \
echo "${INSTALL} -c -o ${ROWNER} -g ${RGROUP} -m 0644 bbsjmacsrc ${JOELIB}" ; \
fi
@if [ ! -x ${BINDIR}/bbsdoor.sh ]; then \
${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0755 bbsdoor.sh ${BINDIR} ; \
echo "${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0755 bbsdoor.sh ${BINDIR}" ; \
${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0755 rundoor.sh ${BINDIR} ; \
echo "${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0755 rundoor.sh ${BINDIR}" ; \
else \
${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0644 bbsdoor.sh ${BINDIR}/bbsdoor.sh.new ; \
echo "${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0644 bbsdoor.sh ${BINDIR}/bbsdoor.sh.new" ; \
${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0644 rundoor.sh ${BINDIR}/rundoor.sh.new ; \
echo "${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0644 rundoor.sh ${BINDIR}/rundoor.sh.new" ; \
fi
@bash ./installinit.sh
filelist: Makefile
BASE=`pwd`; \
BASE=`basename $${BASE}`; \
(for f in ${OTHER} ;do echo ${PACKAGE}-${VERSION}/$${BASE}/$$f; done) >filelist
depend: