Files
ocis/services/web/Makefile
T

45 lines
1.3 KiB
Makefile
Raw Normal View History

SHELL := bash
2020-12-09 14:01:37 +01:00
NAME := web
2023-03-07 23:24:01 +01:00
WEB_ASSETS_VERSION = v7.0.0-rc.18
2022-04-13 11:16:49 +02:00
include ../../.make/recursion.mk
2021-02-24 15:07:39 +01:00
############ tooling ############
2022-05-13 11:16:40 +00:00
ifneq (, $(shell command -v go 2> /dev/null)) # suppress `command not found warnings` for non go targets in CI
2022-04-13 11:16:49 +02:00
include ../../.bingo/Variables.mk
2021-03-09 08:40:35 +01:00
endif
2021-02-24 15:07:39 +01:00
############ go tooling ############
2022-04-13 11:16:49 +02:00
include ../../.make/go.mk
2021-02-24 15:07:39 +01:00
############ release #########
2022-04-13 11:16:49 +02:00
include ../../.make/release.mk
############ docs generate ############
2022-04-13 11:16:49 +02:00
include ../../.make/docs.mk
.PHONY: docs-generate
docs-generate: config-docs-generate
############ generate ############
2022-04-13 11:16:49 +02:00
include ../../.make/generate.mk
.PHONY: ci-go-generate
2021-10-19 16:00:13 +02:00
ci-go-generate: # CI runs ci-node-generate automatically before this target
.PHONY: ci-node-generate
2021-10-19 16:00:13 +02:00
ci-node-generate: pull-assets
2021-10-18 16:44:46 +02:00
.PHONY: pull-assets
pull-assets:
git clean -xfd assets
curl --fail -slL -o- https://github.com/owncloud/web/releases/download/$(WEB_ASSETS_VERSION)/web.tar.gz | tar xzf - -C assets/
2022-04-01 17:11:37 +02:00
############ licenses ############
.PHONY: ci-node-check-licenses
2022-04-04 14:30:42 +02:00
ci-node-check-licenses: # ownCloud Web does the check on it's own
2022-04-01 17:11:37 +02:00
.PHONY: ci-node-save-licenses
ci-node-save-licenses:
2022-11-25 09:35:57 +01:00
@mkdir -p ../../third-party-licenses/node/web
@curl --fail -slL -o- https://github.com/owncloud/web/releases/download/$(WEB_ASSETS_VERSION)/third-party-licenses.tar.gz | tar xzf - -C ../../third-party-licenses/node/web