1
# Copyright 2004 Apache Software Foundation
3
# Licensed under the Apache License, Version 2.0 (the "License");
4
# you may not use this file except in compliance with the License.
5
# You may obtain a copy of the License at
7
# http://www.apache.org/licenses/LICENSE-2.0
9
# Unless required by applicable law or agreed to in writing, software
10
# distributed under the License is distributed on an "AS IS" BASIS,
11
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
# See the License for the specific language governing permissions and
13
# limitations under the License.
15
# Originally developed by Gregory Trubetskoy.
17
# $Id: Makefile.in,v 1.11 2004/02/16 19:47:27 grisha Exp $
20
PYTHON_BIN=@PYTHON_BIN@
21
MP_VERSION=@MP_VERSION@
24
@cd src; $(MAKE) psp_parser.c
25
$(PYTHON_BIN) setup.py build
27
# this one requires at least python 2.3
28
windist: mod_python.so
29
$(PYTHON_BIN) setup.py bdist_wininst --install-script=win32_postinstall.py
31
install: install_py_lib
33
# this may require root priviledges
34
install_py_lib: mod_python src
35
@cd src; $(MAKE) psp_parser.c
36
if test -z "$(DESTDIR)" ; then \
37
$(PYTHON_BIN) setup.py install --optimize 2 --force ; \
39
$(PYTHON_BIN) setup.py install --optimize 2 --force --root $(DESTDIR) ; \
43
@echo "Please place a WIN32 compiled mod_python.so in this directory"
47
ln -s ../lib/python/mod_python
53
rm -rf mod_python build dist
56
rm -rf mod_python src build dist mod_python.so setup.py Makefile MANIFEST MANIFSET.in