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.
19
LIBEXECDIR=@LIBEXECDIR@
21
AP_SRC_OWN=@AP_SRC_OWN@
22
AP_SRC_GRP=@AP_SRC_GRP@
24
PYTHON_BIN=@PYTHON_BIN@
25
PY_STD_LIB=@PY_STD_LIB@
33
@cd dist && $(MAKE) build
35
@echo 'Now su and make install'
36
@echo ' (or, if you only want to perform a partial install,'
37
@echo ' you can use make install_dso and make install_py_lib)'
42
@echo "DSO compilation not available. (Probably because apxs could not be found)."
49
@echo "Static compilation not available. (Probably because --with-apache was not specified)."
53
@if test "`cat src/.install`" = "dso"; then \
54
$(MAKE) install_dso; \
55
else $(MAKE) install_static; fi
59
@echo "Performing DSO installation."
61
$(INSTALL) -d $(DESTDIR)$(LIBEXECDIR)
62
$(INSTALL) src/mod_python.so $(DESTDIR)$(LIBEXECDIR)
63
@$(MAKE) install_py_lib
65
@echo "Now don't forget to edit your main config and add"
66
@echo " LoadModule python_module $(LIBEXECDIR)/mod_python.so"
67
@echo "and if your configuration uses ClearModuleList, then also"
68
@echo " AddModule mod_python.c"
72
cd dist && $(MAKE) install_py_lib
75
cd src && $(MAKE) clean
76
cd dist && $(MAKE) clean
80
cd src && $(MAKE) distclean
81
cd Doc && $(MAKE) distclean
82
cd dist && $(MAKE) distclean
83
rm -rf Makefile config.h config.status config.cache config.log \