Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
kube-prometheus
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GitHub Mirror
prometheus-operator
kube-prometheus
Commits
7a2befe7
Unverified
Commit
7a2befe7
authored
5 years ago
by
paulfantom
Browse files
Options
Downloads
Patches
Plain Diff
*: Assume jb and embedmd are already available
parent
bbd991a3
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Makefile
+5
-11
5 additions, 11 deletions
Makefile
with
5 additions
and
11 deletions
Makefile
+
5
−
11
View file @
7a2befe7
...
...
@@ -7,8 +7,8 @@ else
endif
JSONNET_FMT
:=
$(
JSONNET_FMT_CMD
)
$(
JSONNET_FMT_ARGS
)
JB_BINARY
:=
$(
GOPATH
)
/bin/
jb
EMBEDMD_BINARY
:=
$(
GOPATH
)
/bin/
embedmd
JB_BINARY
:=
jb
EMBEDMD_BINARY
:=
embedmd
CONTAINER_CMD
:=
docker run
--rm
\
-e
http_proxy
-e
https_proxy
-e
no_proxy
\
-u
=
"
$(
shell id -u
)
:
$(
shell id -g
)
"
\
...
...
@@ -31,14 +31,14 @@ clean:
generate
:
manifests **.md
**.md
:
$(EMBEDMD_BINARY)
$(shell find examples) build.sh example.jsonnet
**.md
:
$(shell find examples) build.sh example.jsonnet
$(
EMBEDMD_BINARY
)
-w
`
find
.
-name
"*.md"
|
grep
-v
vendor
`
manifests
:
vendor example.jsonnet build.sh
rm
-rf
manifests
./build.sh ./examples/kustomize.jsonnet
vendor
:
$(JB_BINARY)
jsonnetfile.json jsonnetfile.lock.json
vendor
:
jsonnetfile.json jsonnetfile.lock.json
rm
-rf
vendor
$(
JB_BINARY
)
install
...
...
@@ -46,7 +46,7 @@ fmt:
find
.
-name
'vendor'
-prune
-o
-name
'*.libsonnet'
-o
-name
'*.jsonnet'
-print
|
\
xargs
-n
1
--
$(
JSONNET_FMT
)
-i
test
:
$(JB_BINARY)
test
:
$(
JB_BINARY
)
install
./test.sh
...
...
@@ -57,10 +57,4 @@ test-in-docker:
@
echo
">> Compiling assets and generating Kubernetes manifests"
$(
CONTAINER_CMD
)
make
$(
MFLAGS
)
test
$(JB_BINARY)
:
go get
-u
github.com/jsonnet-bundler/jsonnet-bundler/cmd/jb
$(EMBEDMD_BINARY)
:
go get github.com/campoy/embedmd
.PHONY
:
generate generate-in-docker test test-in-docker fmt
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment