mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-03 19:58:17 +00:00 
			
		
		
		
	Merge pull request #39552 from mikedanese/make-bzl
Automatic merge from submit-queue (batch tested with PRs 39544, 39552, 39553) make help should be bazel aware
This commit is contained in:
		
							
								
								
									
										24
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										24
									
								
								Makefile
									
									
									
									
									
								
							@@ -471,8 +471,32 @@ endif
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
# Non-dockerized bazel rules.
 | 
					# Non-dockerized bazel rules.
 | 
				
			||||||
.PHONY: bazel-build bazel-test
 | 
					.PHONY: bazel-build bazel-test
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					ifeq ($(PRINT_HELP),y)
 | 
				
			||||||
 | 
					define BAZEL_BUILD_HELP_INFO
 | 
				
			||||||
 | 
					# Build with bazel
 | 
				
			||||||
 | 
					#
 | 
				
			||||||
 | 
					# Example:
 | 
				
			||||||
 | 
					# make bazel-build
 | 
				
			||||||
 | 
					endef
 | 
				
			||||||
 | 
					bazel-build:
 | 
				
			||||||
 | 
						@echo "$$BAZEL_BUILD_HELP_INFO"
 | 
				
			||||||
 | 
					else
 | 
				
			||||||
bazel-build:
 | 
					bazel-build:
 | 
				
			||||||
	bazel build //cmd/... //pkg/... //federation/... //plugin/... //build/... //examples/... //test/... //third_party/...
 | 
						bazel build //cmd/... //pkg/... //federation/... //plugin/... //build/... //examples/... //test/... //third_party/...
 | 
				
			||||||
 | 
					endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					ifeq ($(PRINT_HELP),y)
 | 
				
			||||||
 | 
					bazel-test:
 | 
				
			||||||
 | 
					define BAZEL_TEST_HELP_INFO
 | 
				
			||||||
 | 
					# Test with bazel
 | 
				
			||||||
 | 
					#
 | 
				
			||||||
 | 
					# Example:
 | 
				
			||||||
 | 
					# make bazel-test
 | 
				
			||||||
 | 
					endef
 | 
				
			||||||
 | 
						@echo "$$BAZEL_TEST_HELP_INFO"
 | 
				
			||||||
 | 
					else
 | 
				
			||||||
bazel-test:
 | 
					bazel-test:
 | 
				
			||||||
	bazel test  --test_output=errors //cmd/... //pkg/... //federation/... //plugin/... //build/... //third_party/... //hack/...
 | 
						bazel test  --test_output=errors //cmd/... //pkg/... //federation/... //plugin/... //build/... //third_party/... //hack/...
 | 
				
			||||||
 | 
					endif
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user