mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 01:07:15 +03:00
25 lines
651 B
Makefile
25 lines
651 B
Makefile
PYTHON=python
|
|
|
|
.PHONY: tests
|
|
|
|
PREFIX=/usr/local
|
|
|
|
help:
|
|
@echo 'Commonly used make targets:'
|
|
@echo ' local - build for inplace use'
|
|
@echo ' install - install program and man pages to PREFIX ($(PREFIX))'
|
|
@echo ' clean - remove files created by other targets'
|
|
@echo ' (except installed files or dist source tarball)'
|
|
|
|
local:
|
|
$(PYTHON) setup.py \
|
|
build_py -c -d . \
|
|
build_ext -i
|
|
|
|
install:
|
|
$(PYTHON) setup.py $(PURE) install --prefix="$(PREFIX)" --force
|
|
|
|
clean:
|
|
-$(PYTHON) setup.py clean --all # ignore errors from this command
|
|
find . \( -name '*.py[cdo]' -o -name '*.so' \) -exec rm -f '{}' ';'
|