Makefile cleanup

This commit is contained in:
Michiel Broek 2003-12-14 12:28:56 +00:00
parent fe72a65a37
commit 2ab6cacda9
2 changed files with 18 additions and 21 deletions

View File

@ -7,6 +7,7 @@ v0.39.4 08-Dec-2003
general: general:
Added French language file created by Francois Thunus. This Added French language file created by Francois Thunus. This
translation is not yet complete. translation is not yet complete.
Cleanup in main makefile, added help.
upgrade: upgrade:
If you didn't change anything of the language defaults then If you didn't change anything of the language defaults then

View File

@ -20,6 +20,18 @@ all depend:
for d in ${SUBDIRS}; do (cd $$d && ${MAKE} $@) || exit; done; \ for d in ${SUBDIRS}; do (cd $$d && ${MAKE} $@) || exit; done; \
fi fi
help:
@echo " Help for MBSE BBS make:"
@echo ""
@echo "make [all] Compile all sources"
@echo "make install Install everything (must be root)"
@echo "make depend Update source dependencies"
@echo "make dist Create distribution archive"
@echo "make clean Clean sourcetree and configuration"
@echo "make crontab Install default crontab for mbse"
@echo "make filelist Create filelist for make dist"
@echo ""
install: install:
@./checkbasic @./checkbasic
@if [ "`id -un`" != "root" ] ; then \ @if [ "`id -un`" != "root" ] ; then \
@ -37,12 +49,8 @@ install:
${CHOWN} ${OWNER}:${GROUP} ${PREFIX}/etc ; \ ${CHOWN} ${OWNER}:${GROUP} ${PREFIX}/etc ; \
fi fi
@chmod 0775 ${PREFIX}/etc @chmod 0775 ${PREFIX}/etc
@if [ -f ${PREFIX}/etc/lastcall.data ] ; then \ @chmod -f 0660 ${PREFIX}/etc/lastcall.data
chmod 0660 ${PREFIX}/etc/lastcall.data ; \ @chmod -f 0660 ${PREFIX}/etc/sysinfo.data
fi
@if [ -f ${PREFIX}/etc/sysinfo.data ] ; then \
chmod 0660 ${PREFIX}/etc/sysinfo.data ; \
fi
@if [ ! -d ${PREFIX}/doc ] ; then \ @if [ ! -d ${PREFIX}/doc ] ; then \
mkdir ${PREFIX}/doc ; \ mkdir ${PREFIX}/doc ; \
${CHOWN} ${OWNER}:${GROUP} ${PREFIX}/doc ; \ ${CHOWN} ${OWNER}:${GROUP} ${PREFIX}/doc ; \
@ -174,8 +182,8 @@ install:
rmdir ${PREFIX}/var/inbound/tmp ; \ rmdir ${PREFIX}/var/inbound/tmp ; \
echo "Removed ${PREFIX}/var/inbound/tmp" ; \ echo "Removed ${PREFIX}/var/inbound/tmp" ; \
fi fi
chmod 0770 ${PREFIX}/var/rules @chmod 0770 ${PREFIX}/var/rules
chmod 0770 ${PREFIX}/var/run @chmod 0770 ${PREFIX}/var/run
@if [ ! -d ${PREFIX}/var/unknown ] ; then \ @if [ ! -d ${PREFIX}/var/unknown ] ; then \
mkdir ${PREFIX}/var/unknown ; \ mkdir ${PREFIX}/var/unknown ; \
mkdir ${PREFIX}/var/inbound ; \ mkdir ${PREFIX}/var/inbound ; \
@ -191,23 +199,11 @@ install:
${CHOWN} ${OWNER}:${GROUP} ${PREFIX}/var/arealists ; \ ${CHOWN} ${OWNER}:${GROUP} ${PREFIX}/var/arealists ; \
chmod 0750 ${PREFIX}/var/arealists ; \ chmod 0750 ${PREFIX}/var/arealists ; \
fi fi
@if [ -x ${BINDIR}/mbfbgen ]; then \
rm ${BINDIR}/mbfbgen; \
echo "removed ${BINDIR}/mbfbgen"; \
fi
@if [ -x ${BINDIR}/fbutil ]; then \
rm ${BINDIR}/fbutil ; \
echo "removed ${BINDIR}/fbutil "; \
fi
@if [ -x ${BINDIR}/mbchat ]; then \
rm ${BINDIR}/mbchat ; \
echo "removed ${BINDIR}/mbchat"; \
fi
@if [ -x ${BINDIR}/mbtelnetd ]; then \ @if [ -x ${BINDIR}/mbtelnetd ]; then \
rm ${BINDIR}/mbtelnetd ; \ rm ${BINDIR}/mbtelnetd ; \
echo "removed ${BINDIR}/mbtelnetd"; \ echo "removed ${BINDIR}/mbtelnetd"; \
fi fi
for d in ${SUBDIRS}; do (cd $$d && ${MAKE} $@) || exit; done @for d in ${SUBDIRS}; do (cd $$d && ${MAKE} -w $@) || exit; done
dist tar: ${TARFILE} dist tar: ${TARFILE}