Mercurial > public > mercurial-scm > hg-stable
changeset 52920:0005eb86deac
make: add missing `.PHONY` declarations to toplevel makefile targets
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Sun, 16 Feb 2025 23:29:09 -0500 |
parents | 5a049b728b25 |
children | 3ee343dd3abf |
files | Makefile |
diffstat | 1 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/Makefile Sun Feb 16 23:24:10 2025 -0500 +++ b/Makefile Sun Feb 16 23:29:09 2025 -0500 @@ -72,12 +72,15 @@ build: $(PYTHON) setup.py $(PURE) build $(COMPILERFLAG) +.PHONY: build-chg build-chg: make -C contrib/chg +.PHONY: build-rhg build-rhg: (cd rust/rhg; cargo build --release) +.PHONY: wheel wheel: $(PYTHON) setup.py $(PURE) bdist_wheel $(COMPILERFLAG) @@ -112,6 +115,7 @@ install-bin: $(PYTHON) -m pip install --prefix="$(PREFIX)" --force -v --config-settings --global-option="$(PURE)" +.PHONY: install-chg install-chg: build-chg make -C contrib/chg install PREFIX="$(PREFIX)" @@ -130,6 +134,7 @@ install-home-doc: doc cd doc && $(MAKE) $(MFLAGS) PREFIX="$(HOME)" install +.PHONY: install-rhg install-rhg: build-rhg install -m 755 rust/target/release/rhg "$(PREFIX)"/bin/ @@ -152,9 +157,11 @@ fi cd tests && $(PYTHON) run-tests.py $(TESTFLAGS) +.PHONY: test-% test-%: cd tests && $(PYTHON) run-tests.py $(TESTFLAGS) $@ +.PHONY: testpy-% testpy-%: @echo Looking for Python $* in $(HGPYTHONS) [ -e $(HGPYTHONS)/$*/bin/python ] || ( \ @@ -168,6 +175,7 @@ && $(CARGO) test --quiet --all \ --features "$(HG_RUST_FEATURES)" --no-default-features +.PHONY: cargo-clippy cargo-clippy: cd $(HGROOT)/rust \ && $(CARGO) clippy --all --features "$(HG_RUST_FEATURES)" -- -D warnings