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

« back to all changes in this revision

Viewing changes to dist/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
 # $Id: Makefile.in,v 1.11 2004/02/16 19:47:27 grisha Exp $
 
18
 #
 
19
 
 
20
PYTHON_BIN=@PYTHON_BIN@
 
21
MP_VERSION=@MP_VERSION@
 
22
 
 
23
build: mod_python src
 
24
        @cd src; $(MAKE) psp_parser.c
 
25
        $(PYTHON_BIN) setup.py build
 
26
 
 
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
 
30
 
 
31
install: install_py_lib
 
32
 
 
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 ; \
 
38
        else \
 
39
                $(PYTHON_BIN) setup.py install --optimize 2 --force --root $(DESTDIR) ; \
 
40
        fi
 
41
 
 
42
mod_python.so:
 
43
        @echo "Please place a WIN32 compiled mod_python.so in this directory"
 
44
        exit 1
 
45
 
 
46
mod_python:
 
47
        ln -s ../lib/python/mod_python
 
48
 
 
49
src:
 
50
        ln -s ../src
 
51
 
 
52
clean:
 
53
        rm -rf mod_python build dist
 
54
 
 
55
distclean:
 
56
        rm -rf mod_python src build dist mod_python.so setup.py Makefile MANIFEST MANIFSET.in