summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorKieran Bingham <kieran.bingham@ideasonboard.com>2022-11-25 17:00:24 +0000
committerKieran Bingham <kieran.bingham@ideasonboard.com>2022-11-30 14:54:26 +0000
commit21913d5f728023954348dd25019fcf848d824ae6 (patch)
treec3b3d6806e0214dfced26996657ff87a072f9634 /Makefile
parentd2427718c9e91870ceddc032bcfce51def667596 (diff)
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 <dan.scally@ideasonboard.com> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files 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