1 В избранное 0 Ответвления 0

OSCHINA-MIRROR/EdgexFoundry-edgex-ui-go

Присоединиться к Gitlife
Откройте для себя и примите участие в публичных проектах с открытым исходным кодом с участием более 10 миллионов разработчиков. Приватные репозитории также полностью бесплатны :)
Присоединиться бесплатно
Клонировать/Скачать
Makefile 2.1 КБ
Копировать Редактировать Web IDE Исходные данные Просмотреть построчно История
Ernesto Ojeda Отправлено 14.11.2023 00:14 1225bd6
#
# Copyright (c) 2022-2023 VMWare, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
.PHONY: build clean run docker \
test test-angular test-go \
web
GO=CGO_ENABLED=0 GO111MODULE=on go
GOCGO=CGO_ENABLED=1 GO111MODULE=on go
MICROSERVICES=cmd/edgex-ui-server/edgex-ui-server
.PHONY: $(MICROSERVICES)
DOCKERS=docker_edgex_ui_go
.PHONY: $(DOCKERS)
VERSION=$(shell cat ./VERSION 2>/dev/null || echo 0.0.0)
GOFLAGS=-ldflags "-X github.com/edgexfoundry/edgex-ui-go.Version=$(VERSION)" -trimpath
GOTESTFLAGS?=-race
GIT_SHA=$(shell git rev-parse HEAD)
build: $(MICROSERVICES)
tidy:
go mod tidy
cmd/edgex-ui-server/edgex-ui-server:
$(GO) build -tags "no_messagebus" $(GOFLAGS) -o $@ ./cmd/edgex-ui-server
clean:
rm -f $(MICROSERVICES)
test-go:
$(GO) test -tags "no_messagebus" -coverprofile=coverage.out ./...
$(GO) vet -tags "no_messagebus" ./...
gofmt -l $$(find . -type f -name '*.go'| grep -v "/vendor/")
[ "`gofmt -l $$(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ]
./bin/test-attribution-txt.sh
arch := $(shell uname -m)
test-angular:
ifeq ($(arch), x86_64)
$(MAKE) -C web test
endif
test: test-go test-angular
# The sub-make only rebuilds web if needed, so this should be fast,
# but if copying isn't cheap enough, we could tell Make the dependencies.
web:
$(MAKE) -C web build
rm -rf cmd/edgex-ui-server/static/web
cp -R web/dist/web cmd/edgex-ui-server/static/web
prepare:
update:
$(GO) mod download
run:
cd bin && ./edgex-ui-go-launch.sh
docker: $(DOCKERS)
docker_edgex_ui_go:
docker build --label "git_sha=$(GIT_SHA)" \
-t edgexfoundry/edgex-ui:$(GIT_SHA) \
-t edgexfoundry/edgex-ui:$(VERSION)-dev \
.
vendor:
$(GO) mod vendor

Опубликовать ( 0 )

Вы можете оставить комментарий после Вход в систему

1
https://api.gitlife.ru/oschina-mirror/EdgexFoundry-edgex-ui-go.git
git@api.gitlife.ru:oschina-mirror/EdgexFoundry-edgex-ui-go.git
oschina-mirror
EdgexFoundry-edgex-ui-go
EdgexFoundry-edgex-ui-go
main