p≡p for Python
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
520 B

  1. HERE:=$(dir $(lastword $(MAKEFILE_LIST)))
  2. # Constants
  3. BUILD_DIR = ./build
  4. DIST_DIR = ./dist
  5. VERSION_FILE = ./src/pEp/__version__.py
  6. BUILD_INPLACE = ./src/pEp/_pEp.cpython-38-darwin.so
  7. PYTHON_ARTIFACTS += ./.eggs
  8. PYTHON_ARTIFACTS += ./src/pEp.egg-info
  9. PYTHON_ARTIFACTS += ./.pytest_cache
  10. VENV_DIR = ./venv
  11. # Build config Defaults
  12. DEBUG=1
  13. PREFIX=$(HOME)
  14. ######### Overrides #########
  15. -include $(HERE)local.conf
  16. ifeq ($(DEBUG),1)
  17. DEBUG_OPT+=--debug
  18. endif
  19. ifneq ($(PREFIX),)
  20. PREFIX_OPT += --prefix=$(PREFIX)
  21. endif