mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-25 05:34:05 -08:00
Improve comments about embedding.
This commit is contained in:
parent
3012de7f5e
commit
f568bbc19f
|
@ -15,6 +15,9 @@ do
|
|||
echo "\"$(basename ${dir})\": {"
|
||||
|
||||
# Do not embed map files and the non-minified bootstrap files.
|
||||
# TODO(beorn7): There should be a better solution than hardcoding the
|
||||
# exclusion here. We might want to switch to a less makeshift way of
|
||||
# embedding files into the binary anyway...
|
||||
find . -type f \! -name \*.map \! -name bootstrap.js \! -name bootstrap-theme.css \! -name bootstrap.css | while read file
|
||||
do
|
||||
name=$(echo "${file}"|sed 's|\.\/||')
|
||||
|
|
|
@ -17,8 +17,9 @@ all: blob/files.go
|
|||
|
||||
SUFFIXES:
|
||||
|
||||
# Do not embed map files and the non-minified bootstrap files.
|
||||
blob/files.go: $(shell find templates/ static/ -type f)
|
||||
# Note that embed-static.sh excludes map files and the
|
||||
# non-minified bootstrap files.
|
||||
../utility/embed-static.sh static templates | $(GOFMT) > $@
|
||||
|
||||
clean:
|
||||
|
|
Loading…
Reference in a new issue