mirror of
https://github.com/gsi-upm/senpy
synced 2024-11-24 17:12:29 +00:00
89f3a0eca9
a75ba69
Merge branch 'meaningcloud' into 'master'919c4a0
Update base.mk42224e3
Updated makefiles from meaningcloudf0c211c
PYVERSION changed24d85b1
Merge branch 'meaningcloud' into 'master'd150321
Updated makefiles from meaningcloud4f88009
Merge branch 'senpy' into 'master'1f0703d
Fixed typo in .gitlab-cic23f798
Trying to fix push to github git-subtree-dir: .makefiles git-subtree-split:a75ba6994d
37 lines
1.2 KiB
Makefile
37 lines
1.2 KiB
Makefile
export
|
|
NAME ?= $(shell basename $(CURDIR))
|
|
VERSION ?= $(shell git describe --tags --dirty 2>/dev/null)
|
|
|
|
ifeq ($(VERSION),)
|
|
VERSION:=unknown
|
|
endif
|
|
|
|
# Get the location of this makefile.
|
|
MK_DIR := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
|
|
|
|
-include .env
|
|
-include ../.env
|
|
|
|
help: ## Show this help.
|
|
@fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | sed -e 's/\\$$//' | sed -e 's/\(.*:\)[^#]*##\s*\(.*\)/\1\t\2/' | column -t -s " "
|
|
|
|
config: ## Load config from the environment. You should run it once in every session before other tasks. Run: eval $(make config)
|
|
@awk '{ print "export " $$0}' ../.env
|
|
@awk '{ print "export " $$0}' .env
|
|
@echo "# Please, run: "
|
|
@echo "# eval \$$(make config)"
|
|
# If you need to run a command on the key/value pairs, use this:
|
|
# @awk '{ split($$0, a, "="); "echo " a[2] " | base64 -w 0" |& getline b64; print "export " a[1] "=" a[2]; print "export " a[1] "_BASE64=" b64}' .env
|
|
|
|
ci: ## Run a task using gitlab-runner. Only use to debug problems in the CI pipeline
|
|
gitlab-runner exec shell --builds-dir '.builds' --env CI_PROJECT_NAME=$(NAME) ${action}
|
|
|
|
include $(MK_DIR)/makefiles.mk
|
|
include $(MK_DIR)/docker.mk
|
|
include $(MK_DIR)/git.mk
|
|
|
|
info:: ## List all variables
|
|
env
|
|
|
|
.PHONY:: config help ci
|