1
0
mirror of https://github.com/gsi-upm/senpy synced 2024-11-22 00:02:28 +00:00

Updated makefiles from gsictl

This commit is contained in:
J. Fernando Sánchez 2017-09-29 15:00:37 +02:00
parent 2ca9d36f80
commit 963211caf2
2 changed files with 5 additions and 1 deletions

View File

@ -5,7 +5,7 @@ To add them to your project, simply do:
git remote add makefiles ssh://git@lab.cluster.gsi.dit.upm.es:2200/docs/templates/makefiles.git git remote add makefiles ssh://git@lab.cluster.gsi.dit.upm.es:2200/docs/templates/makefiles.git
git subtree add --prefix=.makefiles/ makefiles master git subtree add --prefix=.makefiles/ makefiles master
touch Makefile touch Makefile
echo "include .makefiles/makefiles.mk" >> Makefile echo "include .makefiles/base.mk" >> Makefile
``` ```
Now you can take advantage of the recipes. Now you can take advantage of the recipes.

View File

@ -1,5 +1,8 @@
NAME ?= $(shell basename $(CURDIR))
VERSION ?= $(shell git describe --tags --dirty 2>/dev/null) VERSION ?= $(shell git describe --tags --dirty 2>/dev/null)
# Get the location of this makefile.
MK_DIR := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
.FORCE: .FORCE:
version: .FORCE version: .FORCE
@ -20,5 +23,6 @@ config: ## Load config from the environment. You should run it once in every se
ci: ## Run a task using gitlab-runner. Only use to debug problems in the CI pipeline 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} gitlab-runner exec shell --builds-dir '.builds' --env CI_PROJECT_NAME=$(NAME) ${action}
include $(MK_DIR)/makefiles.mk
.PHONY:: config help ci version .FORCE .PHONY:: config help ci version .FORCE