Incorporate 2.2.0 patches
[debian/hypermail] / Makefile.in
1 #
2 # Makefile for hypermail package.
3 #
4
5 @SET_MAKE@
6
7 prefix=@prefix@
8 exec_prefix=@exec_prefix@
9
10 # This is where you want hypermail to be installed
11 bindir=@bindir@
12
13 # This is where the man page goes
14 mandir=@mandir@
15
16 srcdir=@srcdir@
17
18 # This is where the HTML documentation goes
19 htmldir=@htmldir@
20
21 # This is where your CGI programs live
22 cgidir=@cgidir@
23
24 INSTALL_PROG=@INSTALL@
25
26 #WNOERROR=-Werror
27 #WARNINGS=$(WNOERROR) -ansi -pedantic -Wall -Wtraditional -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Dlint
28  
29 # Compiler to use
30 CC=@CC@ 
31 CFLAGS=@CFLAGS@ @INCLUDES@ -Ipcre -DTRIO_MINIMAL $(WARNINGS)
32 LIBS=@LIBS@
33 LDFLAGS=@LDFLAGS@ -Lpcre
34
35 all:   hypermail support 
36
37 hypermail:
38         @cd src; $(MAKE) all CC="$(CC)" \
39                 CFLAGS="$(CFLAGS)" \
40                 cgidir="$(cgidir)" bindir="$(bindir)" LIBS="$(LIBS)"
41
42 support:   
43         @cd archive; $(MAKE) all CC="$(CC)" CFLAGS="$(CFLAGS)" 
44
45 install: 
46         @cd src; $(MAKE) install CC="$(CC)" CFLAGS="$(CFLAGS)" \
47                 cgidir="$(cgidir)" bindir="$(bindir)" LIBS="$(LIBS)"
48         @cd docs; $(MAKE) install CC="$(CC)" CFLAGS="$(CFLAGS)" \
49                 $(MAKEFLAGS) mandir="$(mandir)" htmldir="$(htmldir)"
50         @cd archive; $(MAKE) install CC="$(CC)" CFLAGS="$(CFLAGS)" \
51                 bindir="$(bindir)"
52
53 uninstall: 
54         @cd src; $(MAKE) uninstall cgidir="$(cgidir)" bindir="$(bindir)" 
55         @cd docs; $(MAKE) uninstall mandir="$(mandir)" htmldir="$(htmldir)"
56         @cd archive; $(MAKE) uninstall bindir="$(bindir)"
57
58 lint:   
59         @cd src; $(MAKE) lint 
60         @cd archive; $(MAKE) lint 
61
62 clean:
63         @cd src; $(MAKE) clean 
64         @cd docs; $(MAKE) clean 
65         @cd archive; $(MAKE) clean 
66         rm -f lint.out
67
68 clobber: clean
69         rm -f config.h
70         rm -f config.cache
71         rm -f config.log
72         rm -f config.status
73         rm -f archive/Makefile
74         rm -f docs/Makefile
75         rm -f libcgi/Makefile
76         rm -f src/Makefile
77         rm -f src/defaults.h
78         rm -f tests/testhm
79         rm -rf tests/testdir
80         rm -rf tests/mail-archive
81         rm -f Makefile
82
83 distclean: clobber
84         rm -f tests/testmail
85
86 tgz:
87         @(dir=`pwd`;name=`basename $$dir`;echo Creates $$name.tar.gz; cd .. ; \
88         tar -cf $$name.tar \
89            `cat $$name/FILES | grep -v "^#" | sed "s:^:$$name/:g"` ; \
90         gzip $$name.tar ; chmod a+r $$name.tar.gz ; mv $$name.tar.gz $$name/)
91