forked from hypermail-project/hypermail
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.in
91 lines (70 loc) · 2.15 KB
/
Makefile.in
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
#
# Makefile for hypermail package.
#
@SET_MAKE@
prefix=@prefix@
exec_prefix=@exec_prefix@
# This is where you want hypermail to be installed
bindir=@bindir@
# This is where the man page goes
mandir=@mandir@
srcdir=@srcdir@
# This is where the HTML documentation goes
htmldir=@htmldir@
# This is where your CGI programs live
cgidir=@cgidir@
INSTALL_PROG=@INSTALL@
#WNOERROR=-Werror
#WARNINGS=$(WNOERROR) -ansi -pedantic -Wall -Wtraditional -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Dlint
# Compiler to use
CC=@CC@
CFLAGS=@CFLAGS@ @INCLUDES@ -Ipcre -DTRIO_MINIMAL $(WARNINGS)
LIBS=@LIBS@
LDFLAGS=@LDFLAGS@ -Lpcre
all: hypermail support
hypermail:
@cd src; $(MAKE) all CC="$(CC)" \
CFLAGS="$(CFLAGS)" \
cgidir="$(cgidir)" bindir="$(bindir)" LIBS="$(LIBS)"
support:
@cd archive; $(MAKE) all CC="$(CC)" CFLAGS="$(CFLAGS)"
install:
@cd src; $(MAKE) install CC="$(CC)" CFLAGS="$(CFLAGS)" \
cgidir="$(cgidir)" bindir="$(bindir)" LIBS="$(LIBS)"
@cd docs; $(MAKE) install CC="$(CC)" CFLAGS="$(CFLAGS)" \
$(MAKEFLAGS) mandir="$(mandir)" htmldir="$(htmldir)"
@cd archive; $(MAKE) install CC="$(CC)" CFLAGS="$(CFLAGS)" \
bindir="$(bindir)"
uninstall:
@cd src; $(MAKE) uninstall cgidir="$(cgidir)" bindir="$(bindir)"
@cd docs; $(MAKE) uninstall mandir="$(mandir)" htmldir="$(htmldir)"
@cd archive; $(MAKE) uninstall bindir="$(bindir)"
lint:
@cd src; $(MAKE) lint
@cd archive; $(MAKE) lint
clean:
@cd src; $(MAKE) clean
@cd docs; $(MAKE) clean
@cd archive; $(MAKE) clean
rm -f lint.out
clobber: clean
rm -f config.h
rm -f config.cache
rm -f config.log
rm -f config.status
rm -f archive/Makefile
rm -f docs/Makefile
rm -f libcgi/Makefile
rm -f src/Makefile
rm -f src/defaults.h
rm -f tests/testhm
rm -rf tests/testdir
rm -rf tests/mail-archive
rm -f Makefile
distclean: clobber
rm -f tests/testmail
tgz:
@(dir=`pwd`;name=`basename $$dir`;echo Creates $$name.tar.gz; cd .. ; \
tar -cf $$name.tar \
`cat $$name/FILES | grep -v "^#" | sed "s:^:$$name/:g"` ; \
gzip $$name.tar ; chmod a+r $$name.tar.gz ; mv $$name.tar.gz $$name/)