pwyckoff | 99b000b | 2008-04-03 19:30:55 +0000 | [diff] [blame] | 1 | DESTDIR ?= / |
| 2 | EXTRA_DIST = setup.py src |
| 3 | |
| 4 | all: |
| 5 | |
| 6 | all-local: |
David Reiss | 4bec874 | 2009-02-07 02:36:57 +0000 | [diff] [blame] | 7 | $(thrift_home)/bin/thrift --gen py $(top_srcdir)/if/fb303.thrift |
| 8 | mv gen-py/fb303/* fb303 |
pwyckoff | 99b000b | 2008-04-03 19:30:55 +0000 | [diff] [blame] | 9 | $(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) |
| 15 | install-exec-hook: |
| 16 | $(PYTHON) setup.py install --root=$(DESTDIR) --prefix=$(PY_PREFIX) $(PYTHON_SETUPUTIL_ARGS) |
| 17 | |
| 18 | |
| 19 | |
| 20 | clean: clean-local |
| 21 | |
| 22 | clean-local: |
| 23 | $(RM) -r build |
| 24 | |
| 25 | check-local: all |