blob: e33bf1379a0de300a7c825f376518b1669bb7aaa [file] [log] [blame]
David Reissea2cba82009-03-30 21:35:00 +00001#
2# Licensed to the Apache Software Foundation (ASF) under one
3# or more contributor license agreements. See the NOTICE file
4# distributed with this work for additional information
5# regarding copyright ownership. The ASF licenses this file
6# to you under the Apache License, Version 2.0 (the
7# "License"); you may not use this file except in compliance
8# with the License. You may obtain a copy of the License at
9#
10# http://www.apache.org/licenses/LICENSE-2.0
11#
12# Unless required by applicable law or agreed to in writing,
13# software distributed under the License is distributed on an
14# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15# KIND, either express or implied. See the License for the
16# specific language governing permissions and limitations
17# under the License.
18#
Roger Meierc0959192013-01-15 23:20:19 +010019.NOTPARALLEL:
Aditya Agarwal99e2c072007-07-31 01:36:08 +000020DESTDIR ?= /
Jake Farrelle0c53162011-11-16 12:58:36 +000021EXTRA_DIST = setup.py setup.cfg src compat
Mark Slee5299a952007-10-05 00:13:24 +000022
David Reiss3de1c4e2008-02-24 17:45:03 +000023all-local:
Mark Slee5299a952007-10-05 00:13:24 +000024 $(PYTHON) setup.py build
Aditya Agarwal99e2c072007-07-31 01:36:08 +000025
David Reissaea19c92007-08-29 23:17:32 +000026# We're ignoring prefix here because site-packages seems to be
27# the equivalent of /usr/local/lib in Python land.
28# Old version (can't put inline because it's not portable).
29#$(PYTHON) setup.py install --prefix=$(prefix) --root=$(DESTDIR) $(PYTHON_SETUPUTIL_ARGS)
Marc Slemkod95abdd2007-01-16 22:20:19 +000030install-exec-hook:
David Reissd6832192007-09-05 00:47:32 +000031 $(PYTHON) setup.py install --root=$(DESTDIR) --prefix=$(PY_PREFIX) $(PYTHON_SETUPUTIL_ARGS)
David Reissb72d19f2007-09-18 19:46:00 +000032
David Reiss2ca456a2008-02-24 16:42:18 +000033clean-local:
34 $(RM) -r build
Mark Slee5299a952007-10-05 00:13:24 +000035
David Reiss223d6bd2008-02-24 02:03:17 +000036check-local: all