BSD/GNUmakefile: update to use new fish_run_tests target

(cherry picked from commit 15ca164773)
This commit is contained in:
David Adam 2025-02-12 08:43:24 +08:00
parent 0f346991e4
commit fab273cf4d
2 changed files with 11 additions and 3 deletions

View File

@ -31,7 +31,7 @@ PREFIX?=/usr/local
build/fish: build/$(BUILDFILE)
$(CMAKE) --build build
# Don't split the mkdir into its own rule because that would cause CMake to regenerate the build
# Don't split the mkdir into its own rule because that would cause CMake to regenerate the build
# files after each build (because it adds the mdate of the build directory into the out-of-date
# calculation tree). GNUmake supports order-only dependencies, BSDmake does not seem to.
build/$(BUILDFILE):
@ -48,7 +48,11 @@ clean:
.PHONY: test
test: build/fish
$(CMAKE) --build build --target test
$(CMAKE) --build build --target fish_run_tests
.PHONY: fish_run_tests
fish_run_tests: build/fish
$(CMAKE) --build build --target fish_run_tests
.PHONY: run
run: build/fish

View File

@ -55,7 +55,11 @@ clean:
.PHONY: test
test: build/fish
$(CMAKE) --build build --target test
$(CMAKE) --build build --target fish_run_tests
.PHONY: fish_run_tests
fish_run_tests: build/fish
$(CMAKE) --build build --target fish_run_tests
.PHONY: install
install: build/fish