Mercurial > evolve
comparison Makefile @ 6132:7da0f8128d90 stable
makefile: cleaned up the last hardcoded python calls
For consistency, and also to have `make deb-prepare` work out
of the box on Debian ≥ 11.
author | Georges Racinet <georges.racinet@octobus.net> |
---|---|
date | Fri, 18 Feb 2022 11:55:40 +0100 |
parents | a86c2682f608 |
children | a80ed2e4745b |
comparison
equal
deleted
inserted
replaced
6131:d3fb823f0c36 | 6132:7da0f8128d90 |
---|---|
1 PYTHON ?= python3 | 1 PYTHON ?= python3 |
2 VERSION = $(shell python setup.py --version) | 2 VERSION = $(shell $(PYTHON) setup.py --version) |
3 TESTFLAGS ?= $(shell echo $$HGTESTFLAGS) | 3 TESTFLAGS ?= $(shell echo $$HGTESTFLAGS) |
4 HGTESTS = $(HGROOT)/tests | 4 HGTESTS = $(HGROOT)/tests |
5 | 5 |
6 .PHONY: help | 6 .PHONY: help |
7 help: | 7 help: |
13 .PHONY: all | 13 .PHONY: all |
14 all: help | 14 all: help |
15 | 15 |
16 .PHONY: deb-prepare | 16 .PHONY: deb-prepare |
17 deb-prepare: | 17 deb-prepare: |
18 python setup.py sdist --dist-dir .. | 18 $(PYTHON) setup.py sdist --dist-dir .. |
19 mv -f ../hg-evolve-$(VERSION).tar.gz ../mercurial-evolve_$(VERSION).orig.tar.gz | 19 mv -f ../hg-evolve-$(VERSION).tar.gz ../mercurial-evolve_$(VERSION).orig.tar.gz |
20 tar xf ../mercurial-evolve_$(VERSION).orig.tar.gz | 20 tar xf ../mercurial-evolve_$(VERSION).orig.tar.gz |
21 rm -rf ../mercurial-evolve_$(VERSION).orig | 21 rm -rf ../mercurial-evolve_$(VERSION).orig |
22 mv hg-evolve-$(VERSION) ../mercurial-evolve_$(VERSION).orig | 22 mv hg-evolve-$(VERSION) ../mercurial-evolve_$(VERSION).orig |
23 cp -r debian/ ../mercurial-evolve_$(VERSION).orig/ | 23 cp -r debian/ ../mercurial-evolve_$(VERSION).orig/ |