mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 17:27:53 +03:00
004e19698b
Summary: I noticed that cdatapack.o was not cleaned with `make clean`. And `.c` generated by Cython should also be cleaned to avoid surprise. Since the latter cannot be done cleanly using short shell script, write the clean logic in Python. Test Plan: `make clean` Reviewers: #sourcecontrol, rmcelroy Reviewed By: rmcelroy Subscribers: rmcelroy, mjpieters Differential Revision: https://phabricator.intern.facebook.com/D4979676 Signature: t1:4979676:1493717290:a826da9e50bcd67362c790b27ff0d88714d71d49
28 lines
632 B
Makefile
28 lines
632 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_clib \
|
|
build_ext -i
|
|
|
|
install:
|
|
$(PYTHON) setup.py $(PURE) install --prefix="$(PREFIX)" --force
|
|
|
|
clean:
|
|
-$(PYTHON) setup.py clean --all clean_ext # ignore errors from this command
|
|
|
|
deb:
|
|
contrib/builddeb
|