mirror of
https://github.com/clearml/go-nvlib
synced 2025-01-31 02:47:02 +00:00
Add .shell target for interactive make
Signed-off-by: Evan Lezar <elezar@nvidia.com>
This commit is contained in:
parent
1fc1eee392
commit
d69a94ffdd
12
Makefile
12
Makefile
@ -96,3 +96,15 @@ $(DOCKER_TARGETS): docker-%: .build-image
|
||||
--user $$(id -u):$$(id -g) \
|
||||
$(BUILDIMAGE) \
|
||||
make $(*)
|
||||
|
||||
# Start an interactive shell using the development image.
|
||||
PHONY: .shell
|
||||
.shell:
|
||||
$(DOCKER) run \
|
||||
--rm \
|
||||
-ti \
|
||||
-e GOCACHE=/tmp/.cache \
|
||||
-v $(PWD):$(PWD) \
|
||||
-w $(PWD) \
|
||||
--user $$(id -u):$$(id -g) \
|
||||
$(BUILDIMAGE)
|
||||
|
Loading…
Reference in New Issue
Block a user