From 21913d5f728023954348dd25019fcf848d824ae6 Mon Sep 17 00:00:00 2001 From: Kieran Bingham Date: Fri, 25 Nov 2022 17:00:24 +0000 Subject: Makefile: Fix install target Fix the install target to supply the correct call to ninja, and ensure that it is marked as a phony target to prevent conflicts with any local files or directories of the same name. Reviewed-by: Daniel Scally Signed-off-by: Kieran Bingham --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 2f88df0..f296c7e 100644 --- a/Makefile +++ b/Makefile @@ -35,11 +35,11 @@ uvc-gadget: ## Build the uvc-gadget library and application uvc-gadget: | $(BUILDDIR)/build.ninja $(ninja) -C $(BUILDDIR) -.PHONY: test +.PHONY: test install test: ## Run tests install: ## Install the package on this system. (Or set DESTDIR) test install: | $(BUILDDIR)/build.ninja - $(ninja) -C $(BUILDDIR) $* + $(ninja) -C $(BUILDDIR) $@ iwyu: ## Generate include-what-you-use report iwyu_tool -p $(BUILDDIR) -j4 > iwyu.report -- cgit v1.2.3