Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
3bc3e410
Commit
3bc3e410
authored
Feb 07, 2017
by
Joe Finney
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove verify_gen_openapi make rule.
parent
48fc03b8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
20 deletions
+14
-20
.gitignore
.gitignore
+1
-0
Makefile
Makefile
+2
-0
Makefile.generated_files
Makefile.generated_files
+11
-20
No files found.
.gitignore
View file @
3bc3e410
...
@@ -110,6 +110,7 @@ kubernetes.tar.gz
...
@@ -110,6 +110,7 @@ kubernetes.tar.gz
# generated files in any directory
# generated files in any directory
# TODO(thockin): uncomment this when we stop committing the generated files.
# TODO(thockin): uncomment this when we stop committing the generated files.
#zz_generated.*
#zz_generated.*
zz_generated.openapi.go
# make-related metadata
# make-related metadata
/.make/
/.make/
...
...
Makefile
View file @
3bc3e410
...
@@ -287,6 +287,8 @@ clean: clean_meta
...
@@ -287,6 +287,8 @@ clean: clean_meta
build/make-clean.sh
build/make-clean.sh
rm
-rf
$(OUT_DIR)
rm
-rf
$(OUT_DIR)
rm
-rf
Godeps/_workspace
# Just until we are sure it is gone
rm
-rf
Godeps/_workspace
# Just until we are sure it is gone
# TODO
(
thockin
)
: Remove this when we call clean_generated.
rm
-f
pkg/generated/openapi/zz_generated.openapi.go
endif
endif
define
CLEAN_META_HELP_INFO
define
CLEAN_META_HELP_INFO
...
...
Makefile.generated_files
View file @
3bc3e410
...
@@ -40,8 +40,7 @@ generated_files: gen_deepcopy gen_defaulter gen_conversion gen_openapi
...
@@ -40,8 +40,7 @@ generated_files: gen_deepcopy gen_defaulter gen_conversion gen_openapi
.PHONY
:
verify_generated_files
.PHONY
:
verify_generated_files
verify_generated_files
:
verify_gen_deepcopy
\
verify_generated_files
:
verify_gen_deepcopy
\
verify_gen_defaulter
\
verify_gen_defaulter
\
verify_gen_conversion
\
verify_gen_conversion
verify_gen_openapi
# Code-generation logic.
# Code-generation logic.
#
#
...
@@ -480,27 +479,10 @@ OPENAPI_DIRS := $(shell \
...
@@ -480,27 +479,10 @@ OPENAPI_DIRS := $(shell \
OPENAPI_OUTFILE
:=
$(OPENAPI_OUTPUT_PKG)
/
$(OPENAPI_FILENAME)
OPENAPI_OUTFILE
:=
$(OPENAPI_OUTPUT_PKG)
/
$(OPENAPI_FILENAME)
# Shell function for reuse in rules.
RUN_GEN_OPENAPI
=
\
function
run_gen_openapi
()
{
\
./hack/run-in-gopath.sh
$(OPENAPI_GEN)
\
--v
$(KUBE_VERBOSE)
\
--logtostderr
\
-i
$$
(
echo
$
(
addprefix
$(PRJ_SRC_PATH)
/,
$(OPENAPI_DIRS)
)
|
sed
's/ /,/g'
)
\
-p
$(PRJ_SRC_PATH)
/
$(OPENAPI_OUTPUT_PKG)
\
-O
$(OPENAPI_BASENAME)
\
"
$$
@"
;
\
}
;
\
run_gen_openapi
# This rule is the user-friendly entrypoint for openapi generation.
# This rule is the user-friendly entrypoint for openapi generation.
.PHONY
:
gen_openapi
.PHONY
:
gen_openapi
gen_openapi
:
$(OPENAPI_OUTFILE) $(OPENAPI_GEN)
gen_openapi
:
$(OPENAPI_OUTFILE) $(OPENAPI_GEN)
.PHONY
:
verify_gen_openapi
verify_gen_openapi
:
$(OPENAPI_GEN)
$(RUN_GEN_OPENAPI)
--verify-only
# For each dir in OPENAPI_DIRS, this establishes a dependency between the
# For each dir in OPENAPI_DIRS, this establishes a dependency between the
# output file and the input files that should trigger a rebuild.
# output file and the input files that should trigger a rebuild.
#
#
...
@@ -520,7 +502,16 @@ $(foreach dir, $(OPENAPI_DIRS), $(eval \
...
@@ -520,7 +502,16 @@ $(foreach dir, $(OPENAPI_DIRS), $(eval \
# How to regenerate open-api code. This emits a single file for all results.
# How to regenerate open-api code. This emits a single file for all results.
$(OPENAPI_OUTFILE)
:
$(OPENAPI_GEN) $(OPENAPI_GEN)
$(OPENAPI_OUTFILE)
:
$(OPENAPI_GEN) $(OPENAPI_GEN)
$(RUN_GEN_OPENAPI)
function
run_gen_openapi
()
{
\
./hack/run-in-gopath.sh
$(OPENAPI_GEN)
\
--v
$(KUBE_VERBOSE)
\
--logtostderr
\
-i
$$
(
echo
$
(
addprefix
$(PRJ_SRC_PATH)
/,
$(OPENAPI_DIRS)
)
|
sed
's/ /,/g'
)
\
-p
$(PRJ_SRC_PATH)
/
$(OPENAPI_OUTPUT_PKG)
\
-O
$(OPENAPI_BASENAME)
\
"
$$
@"
;
\
}
;
\
run_gen_openapi
# This calculates the dependencies for the generator tool, so we only rebuild
# This calculates the dependencies for the generator tool, so we only rebuild
# it when needed. It is PHONY so that it always runs, but it only updates the
# it when needed. It is PHONY so that it always runs, but it only updates the
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment