1 # Copyright (C) 1998-2007 by the Free Software Foundation, Inc.
3 # This program is free software; you can redistribute it and/or
4 # modify it under the terms of the GNU General Public License
5 # as published by the Free Software Foundation; either version 2
6 # of the License, or (at your option) any later version.
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
18 # NOTE: Makefile.in is converted into Makefile by the configure script
19 # in the parent directory. Once configure has run, you can recreate
20 # the Makefile by running just config.status.
22 # Variables set by configure
28 exec_prefix= @
exec_prefix@
29 var_prefix
= @VAR_PREFIX@
39 # Customizable but not set by configure
42 CFLAGS
= $(OPT
) $(DEFS
)
43 PACKAGEDIR
= $(prefix)/Mailman
44 DATADIR
= $(var_prefix
)/data
45 ETCDIR
= $(var_prefix
)/etc
46 ICONDIR
= $(prefix)/icons
47 SCRIPTSDIR
= $(prefix)/scripts
50 PYTHONLIBDIR
= $(prefix)/pythonlib
51 PYTHONPATHDIR
= $(PYTHONLIBDIR
)/lib
/python
53 # Traditional distutils packages
54 SETUPINSTOPTS
= --home
$(DESTDIR
)$(PYTHONLIBDIR
)
55 SETUPCMD
= setup.py
--quiet
install $(SETUPINSTOPTS
)
57 SETUPTOOLS
= setuptools-0.6c3
58 SQLALCHEMY
= SQLAlchemy-0.3
.3
59 ZOPEIFACE
= zope.interface-3.3
.0.1
61 SETUPPKGS
= $(SETUPTOOLS
) $(SQLALCHEMY
) $(ZOPEIFACE
) $(ELIXIR
)
63 EZINSTOPTS
= --install-dir
$(DESTDIR
)$(PYTHONPATHDIR
)
64 EZCMD
= $(PYTHONLIBDIR
)/bin
/easy_install
$(EZINSTOPTS
)
66 WSGIREF
= wsgiref-0.1
.2-py2.4.egg
67 MUNEPY
= munepy-1.1
-py2.5.egg
68 EZPKGS
= $(WSGIREF
) $(MUNEPY
)
70 # Modes for directories and executables created by the install
71 # process. Default to group-writable directories but
72 # user-only-writable for executables.
77 INSTALL_PROGRAM
=$(INSTALL
) -m
$(EXEMODE
)
79 PATHSDIRS
= bin cron scripts tests
80 ICONS
= $(srcdir)/*.jpg
$(srcdir)/*.png
86 install: install-other install-packages
89 $(INSTALL
) -m
$(FILEMODE
) $(ICONS
) $(DESTDIR
)$(ICONDIR
)
90 for d in
$(PATHSDIRS
); \
92 dir=$(DESTDIR
)$(prefix)/$$d; \
93 $(INSTALL
) -m
$(FILEMODE
) paths.py
$$dir; \
95 $(INSTALL
) -m
$(EXEMODE
) mailman
$(DESTDIR
)$(SCRIPTSDIR
)
96 $(INSTALL
) -m
$(FILEMODE
) mailman.cfg.sample
$(DESTDIR
)$(ETCDIR
)
99 mkdir
-p
$(PYTHONPATHDIR
)
100 for p in
$(SETUPPKGS
); \
102 gunzip
-c
$(srcdir)/$$p.
tar.gz |
tar xf
-; \
103 (cd
$$p ; umask
02 ; \
104 PYTHONPATH
=$(PYTHONPATHDIR
) $(PYTHON
) $(SETUPCMD
)); \
106 for p in
$(EZPKGS
); \
108 (umask
02 ; PYTHONPATH
=$(PYTHONPATHDIR
) $(EZCMD
) $$p); \
110 $(INSTALL
) -m
$(FILEMODE
) coverage.py
$(PYTHONPATHDIR
)
117 -rm Makefile paths.py mailman