2 # Makefile for hypermail package.
8 exec_prefix=@exec_prefix@
10 # This is where you want hypermail to be installed
13 # This is where the man page goes
18 # This is where the HTML documentation goes
21 # This is where your CGI programs live
24 INSTALL_PROG=@INSTALL@
27 #WARNINGS=$(WNOERROR) -ansi -pedantic -Wall -Wtraditional -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Dlint
31 CFLAGS=@CFLAGS@ @INCLUDES@ -Ipcre -DTRIO_MINIMAL $(WARNINGS)
33 LDFLAGS=@LDFLAGS@ -Lpcre
35 all: hypermail support
38 @cd src; $(MAKE) all CC="$(CC)" \
40 cgidir="$(cgidir)" bindir="$(bindir)" LIBS="$(LIBS)"
43 @cd archive; $(MAKE) all CC="$(CC)" CFLAGS="$(CFLAGS)"
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)" \
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)"
60 @cd archive; $(MAKE) lint
63 @cd src; $(MAKE) clean
64 @cd docs; $(MAKE) clean
65 @cd archive; $(MAKE) clean
73 rm -f archive/Makefile
80 rm -rf tests/mail-archive
87 @(dir=`pwd`;name=`basename $$dir`;echo Creates $$name.tar.gz; cd .. ; \
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/)