# $Cambridge: hermes/src/prayer/Makefile,v 1.2 2003/04/16 09:36:05 dpc22 Exp $ # Prayer - a Webmail Interface # # Copyright (c) University of Cambridge 2000 - 2002 # See the file NOTICE for conditions of use and distribution. ifeq ($(strip $(RPM_BUILD)), true) include Config-RPM else include Config endif all: (cd files; $(MAKE) all) (cd prayer; $(MAKE) all) ifeq ($(strip $(ACCOUNTD_ENABLE)), true) (cd accountd; $(MAKE) all) endif cert: (cd files; $(MAKE) cert) install-cert: (cd files; $(MAKE) install-cert) install: (cd files; $(MAKE) install) (cd prayer; $(MAKE) install) ifeq ($(strip $(ACCOUNTD_ENABLE)), true) (cd accountd; $(MAKE) install) endif ifeq ($(strip $(RPM_BUILD)), true) (cd files; $(MAKE) redhat-install-init.d) endif redhat-start: (cd files; $(MAKE) redhat-install-init.d) chkconfig prayer --level 2345 on /etc/init.d/prayer start redhat-stop: @if [ -x /etc/init.d/prayer ]; then \ /etc/init.d/prayer stop; \ fi clean: rm -f core *.o *.flc *~ \#*\# rm -f defaults/*~ defaults/\#*\# rm -rf docs/*~ docs/\#*\# (cd prayer; $(MAKE) clean) (cd files; $(MAKE) clean) ifeq ($(strip $(ACCOUNTD_ENABLE)), true) (cd accountd; $(MAKE) clean) endif distclean: clean (cd files; $(MAKE) distclean) cp defaults/Config defaults/Config-RPM .