blob: 6883d663dfdaa5b168771aa0aa28af72d4ed16c4 [file] [log] [blame]
pwyckoff99b000b2008-04-03 19:30:55 +00001DESTDIR ?= /
2EXTRA_DIST = setup.py src
3
4all:
5
6all-local:
David Reiss4bec8742009-02-07 02:36:57 +00007 $(thrift_home)/bin/thrift --gen py $(top_srcdir)/if/fb303.thrift
8 mv gen-py/fb303/* fb303
pwyckoff99b000b2008-04-03 19:30:55 +00009 $(PYTHON) setup.py build
10
11# We're ignoring prefix here because site-packages seems to be
12# the equivalent of /usr/local/lib in Python land.
13# Old version (can't put inline because it's not portable).
14#$(PYTHON) setup.py install --prefix=$(prefix) --root=$(DESTDIR) $(PYTHON_SETUPUTIL_ARGS)
15install-exec-hook:
16 $(PYTHON) setup.py install --root=$(DESTDIR) --prefix=$(PY_PREFIX) $(PYTHON_SETUPUTIL_ARGS)
17
18
19
20clean: clean-local
21
22clean-local:
23 $(RM) -r build
24
25check-local: all