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/Makefile

138 lines
4.2 KiB
Makefile
Raw Normal View History

2001-11-03 21:57:45 +00:00
# Copyright (c) M. Broek, 1997-2000
# Top-level makefile for MBSE BBS package
2001-11-03 22:32:01 +00:00
# $Id$
2001-11-03 21:57:45 +00:00
include Makefile.global
OTHER = AUTHORS ChangeLog COPYING DEBUG CRON.sh FILE_ID.DIZ.in \
INSTALL.in MBSE.FAQ Makefile Makefile.global.in NEWS \
README README.GoldED SETUP.sh TODO UPGRADE aclocal.m4 \
checkbasic config.h.in configure configure.in files.css
TARFILE = ${PACKAGE}-${VERSION}.tar.gz
###############################################################################
all depend:
@if [ -z ${MBSE_ROOT} ] ; then \
echo; echo " MBSE_ROOT is not set!"; echo; exit 3; \
else \
for d in ${SUBDIRS}; do (cd $$d && ${MAKE} $@) || exit; done; \
fi
install:
@./checkbasic
@if [ "`id -un`" != "root" ] ; then \
echo; echo " Must be root to install!"; echo; exit 3; \
fi
@if [ ! -d ${PREFIX}/bin ] ; then \
mkdir ${PREFIX}/bin ; \
${CHOWN} ${OWNER}.${GROUP} ${PREFIX}/bin ; \
fi
@if [ ! -d ${PREFIX}/etc ] ; then \
mkdir ${PREFIX}/etc ; \
mkdir ${PREFIX}/etc/maptabs ; \
${CHOWN} ${OWNER}.${GROUP} ${PREFIX}/etc ; \
${CHOWN} ${OWNER}.${GROUP} ${PREFIX}/etc/maptabs ; \
fi
@chmod 0775 ${PREFIX}/etc
2001-11-03 21:57:45 +00:00
@if [ ! -d ${PREFIX}/doc ] ; then \
mkdir ${PREFIX}/doc ; \
${CHOWN} ${OWNER}.${GROUP} ${PREFIX}/doc ; \
fi
@if [ ! -d ${PREFIX}/fdb ] ; then \
mkdir ${PREFIX}/fdb ; \
${CHOWN} ${OWNER}.${GROUP} ${PREFIX}/fdb ; \
fi
@chmod 0775 ${PREFIX}/fdb
2001-11-03 21:57:45 +00:00
@if [ ! -d ${PREFIX}/log ] ; then \
mkdir ${PREFIX}/log ; \
${CHOWN} ${OWNER}.${GROUP} ${PREFIX}/log ; \
fi
@if [ ! -d ${PREFIX}/magic ] ; then \
mkdir ${PREFIX}/magic ; \
${CHOWN} ${OWNER}.${GROUP} ${PREFIX}/magic ; \
fi
@if [ ! -d ${PREFIX}/sema ] ; then \
mkdir ${PREFIX}/sema ; \
${CHOWN} ${OWNER}.${GROUP} ${PREFIX}/sema ; \
chmod 0777 ${PREFIX}/sema ; \
fi
@if [ ! -d ${PREFIX}/var ] ; then \
mkdir ${PREFIX}/var ; \
${CHOWN} ${OWNER}.${GROUP} ${PREFIX}/var ; \
fi
@if [ ! -d ${PREFIX}/tmp ] ; then \
mkdir ${PREFIX}/tmp ; \
${CHOWN} ${OWNER}.${GROUP} ${PREFIX}/tmp ; \
chmod 0777 ${PREFIX}/tmp ; \
fi
@if [ ! -d ${PREFIX}/dutch ] ; then \
mkdir ${PREFIX}/dutch ; \
mkdir ${PREFIX}/dutch/txtfiles ; \
mkdir ${PREFIX}/dutch/menus ; \
mkdir ${PREFIX}/dutch/macro ; \
${CHOWN} -R ${OWNER}.${GROUP} ${PREFIX}/dutch ; \
fi
@if [ ! -d ${PREFIX}/english ] ; then \
mkdir ${PREFIX}/english ; \
mkdir ${PREFIX}/english/txtfiles ; \
mkdir ${PREFIX}/english/menus ; \
mkdir ${PREFIX}/english/macro ; \
${CHOWN} -R ${OWNER}.${GROUP} ${PREFIX}/english ; \
fi
@if [ ! -d ${PREFIX}/italian ] ; then \
mkdir ${PREFIX}/italian ; \
mkdir ${PREFIX}/italian/txtfiles ; \
mkdir ${PREFIX}/italian/menus ; \
mkdir ${PREFIX}/italian/macro ; \
${CHOWN} -R ${OWNER}.${GROUP} ${PREFIX}/italian ; \
fi
@if [ ! -d ${PREFIX}/spanish ] ; then \
mkdir ${PREFIX}/spanish ; \
mkdir ${PREFIX}/spanish/txtfiles ; \
mkdir ${PREFIX}/spanish/menus ; \
mkdir ${PREFIX}/spanish/macro ; \
${CHOWN} -R ${OWNER}.${GROUP} ${PREFIX}/spanish ; \
fi
@if [ ! -d ${PREFIX}/galego ] ; then \
mkdir ${PREFIX}/galego ; \
mkdir ${PREFIX}/galego/txtfiles ; \
mkdir ${PREFIX}/galego/menus ; \
mkdir ${PREFIX}/galego/macro ; \
${CHOWN} -R ${OWNER}.${GROUP} ${PREFIX}/galego ; \
fi
@if [ ! -d /var/spool/mbse ] ; then \
mkdir /var/spool/mbse ; \
mkdir /var/spool/mbse/nodelist ; \
mkdir /var/spool/mbse/unknown ; \
mkdir /var/spool/mbse/inbound ; \
mkdir /var/spool/mbse/outbound ; \
mkdir /var/spool/mbse/msgs; \
mkdir /var/spool/mbse/badtic ; \
mkdir /var/spool/mbse/ticqueue ; \
mkdir /var/spool/mbse/ftp ; \
mkdir /var/spool/mbse/mail ; \
${CHOWN} -R ${OWNER}.${GROUP} /var/spool/mbse ; \
chmod -R 0755 /var/spool/mbse ; \
fi
for d in ${SUBDIRS}; do (cd $$d && ${MAKE} $@) || exit; done
dist tar: ${TARFILE}
clean:
rm -f .filelist core ${TARFILE}
for d in ${SUBDIRS}; do (cd $$d && ${MAKE} $@) || exit; done;
${TARFILE}: .filelist
cd ..; rm -f ${TARFILE}; \
${TAR} cvTf ./${PACKAGE}-${VERSION}/.filelist - | gzip >${TARFILE}
crontab:
sh ./CRON.sh
.filelist filelist:
(for f in ${OTHER} ;do echo ${PACKAGE}-${VERSION}/$$f; done) >.filelist
for d in ${SUBDIRS}; do (cd $$d && ${MAKE} filelist && cat filelist >>../.filelist) || exit; done;