~ubuntu-branches/ubuntu/dapper/libapache2-mod-python/dapper

« back to all changes in this revision

Viewing changes to Makefile.in

  • Committer: Bazaar Package Importer
  • Author(s): Thom May
  • Date: 2004-09-06 20:27:57 UTC
  • Revision ID: james.westby@ubuntu.com-20040906202757-yzpyu1bcabgpjtiu
Tags: upstream-3.1.3
ImportĀ upstreamĀ versionĀ 3.1.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 # Copyright 2004 Apache Software Foundation
 
2
 #
 
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
 
6
 #
 
7
 #      http://www.apache.org/licenses/LICENSE-2.0
 
8
 #
 
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.
 
14
 #
 
15
 # Originally developed by Gregory Trubetskoy.
 
16
 #
 
17
 
 
18
@SET_MAKE@
 
19
LIBEXECDIR=@LIBEXECDIR@
 
20
AP_SRC=@AP_SRC@
 
21
AP_SRC_OWN=@AP_SRC_OWN@
 
22
AP_SRC_GRP=@AP_SRC_GRP@
 
23
INSTALL=@INSTALL@
 
24
PYTHON_BIN=@PYTHON_BIN@
 
25
PY_STD_LIB=@PY_STD_LIB@
 
26
 
 
27
all: @ALL@
 
28
 
 
29
dso: @DSO@
 
30
 
 
31
do_dso:
 
32
        @cd src && $(MAKE)
 
33
        @cd dist && $(MAKE) build
 
34
        @echo
 
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)'
 
38
        @echo
 
39
 
 
40
no_dso:
 
41
        @echo
 
42
        @echo "DSO compilation not available. (Probably because apxs could not be found)."
 
43
        @echo
 
44
 
 
45
static: @STATIC@
 
46
 
 
47
no_static:
 
48
        @echo
 
49
        @echo "Static compilation not available. (Probably because --with-apache was not specified)."
 
50
        @echo
 
51
 
 
52
install: src/.install
 
53
        @if test "`cat src/.install`" = "dso"; then \
 
54
                $(MAKE) install_dso; \
 
55
        else $(MAKE) install_static; fi
 
56
 
 
57
install_dso:    dso
 
58
        @echo
 
59
        @echo "Performing DSO installation."
 
60
        @echo
 
61
        $(INSTALL) -d $(DESTDIR)$(LIBEXECDIR)
 
62
        $(INSTALL) src/mod_python.so $(DESTDIR)$(LIBEXECDIR)
 
63
        @$(MAKE) install_py_lib
 
64
        @echo
 
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"
 
69
        @echo
 
70
 
 
71
install_py_lib:
 
72
        cd dist && $(MAKE) install_py_lib
 
73
 
 
74
clean:
 
75
        cd src && $(MAKE) clean
 
76
        cd dist && $(MAKE) clean
 
77
        rm -f core
 
78
 
 
79
distclean: 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 \
 
84
                test/testconf.py 
 
85