Makefile
changeset 45821 c2837640aeb0
parent 45609 e604a3c03ab9
child 45833 be6544a05e8f
equal deleted inserted replaced
45820:ee826f43cf4f 45821:c2837640aeb0
     3 # override the variable on the command like:
     3 # override the variable on the command like:
     4 #
     4 #
     5 # % make PREFIX=/opt/ install
     5 # % make PREFIX=/opt/ install
     6 
     6 
     7 export PREFIX=/usr/local
     7 export PREFIX=/usr/local
       
     8 
       
     9 # Default to Python 3.
       
    10 #
       
    11 # Windows ships Python 3 as `python.exe`.
       
    12 ifeq ($(OS),Windows_NT)
     8 PYTHON?=python
    13 PYTHON?=python
       
    14 else
       
    15 PYTHON?=python3
       
    16 endif
       
    17 
     9 $(eval HGROOT := $(shell pwd))
    18 $(eval HGROOT := $(shell pwd))
    10 HGPYTHONS ?= $(HGROOT)/build/pythons
    19 HGPYTHONS ?= $(HGROOT)/build/pythons
    11 PURE=
    20 PURE=
    12 PYFILESCMD=find mercurial hgext doc -name '*.py'
    21 PYFILESCMD=find mercurial hgext doc -name '*.py'
    13 PYFILES:=$(shell $(PYFILESCMD))
    22 PYFILES:=$(shell $(PYFILESCMD))