From c237af0e370b798463f2fb11c6b4906daba6499d Mon Sep 17 00:00:00 2001 From: DTB Date: Mon, 15 Jan 2024 23:54:42 -0700 Subject: [PATCH] Makefile: move PHONYs to their respective recipes --- Makefile | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index b7e7e5f..b47084e 100644 --- a/Makefile +++ b/Makefile @@ -10,11 +10,6 @@ .POSIX: .PRAGMA: posix_202x # future POSIX standard support à la pdpmake(1) -.PHONY: all -.PHONY: clean -.PHONY: install -.PHONY: test - PREFIX=/usr/local CC=cc @@ -23,6 +18,7 @@ RUSTC=rustc # to build, first run ./configure include *.mk +.PHONY: all all: dj false fop intcmp scrut str strcmp true build: @@ -30,6 +26,7 @@ build: # https://github.com/rust-lang/rust-bindgen/issues/2703 mkdir -p build/bin build/include build/lib build/o build/test +.PHONY: clean clean: rm -rf build/ dist/ @@ -38,10 +35,12 @@ dist: all cp build/bin/* dist/bin/ cp docs/*.1 dist/share/man/man1/ +.PHONY: install install: dist mkdir -p $(PREFIX) cp -r dist/* $(PREFIX)/ +.PHONY: test test: build tests/cc-compat.sh tests/posix-compat.sh