File: Makefile

package info (click to toggle)
prayer 1.3.5-dfsg1-6
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 6,576 kB
  • sloc: ansic: 43,161; makefile: 817; sh: 445; perl: 166
file content (59 lines) | stat: -rw-r--r-- 1,346 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# $Cambridge: hermes/src/prayer/Makefile,v 1.5 2008/10/02 07:07:03 dpc22 Exp $
# Prayer - a Webmail Interface
#
# Copyright (c) University of Cambridge 2000 - 2008
# See the file NOTICE for conditions of use and distribution.

ifeq ($(strip $(RPM_BUILD)), true)
include Config-RPM
else
include Config
endif

SUBDIRS = files lib shared session cmd templates servers utils

ifeq ($(strip $(ACCOUNTD_ENABLE)), true)
SUBDIRS += accountd
endif

all:
	for i in $(SUBDIRS); do $(MAKE) -C $$i all || exit; done

cert:
	(cd files; $(MAKE) cert)

install-cert:
	(cd files; $(MAKE) install-cert)

install:
	$(MAKE) -C files install
	$(MAKE) -C man   install
	$(MAKE) -C templates install
	$(MAKE) -C servers install
	$(MAKE) -C utils install
ifeq ($(strip $(ACCOUNTD_ENABLE)), true)
	$(MAKE) -C accountd 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/\#*\#
	for i in $(SUBDIRS); do $(MAKE) -C $$i clean || exit; done

distclean: clean
	(cd files; $(MAKE) distclean)
	cp defaults/Config defaults/Config-RPM .