Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
social
SoMeDi Use Case - Lateral
Commits
963211ca
Commit
963211ca
authored
Sep 29, 2017
by
J. Fernando Sánchez
Browse files
Updated makefiles from gsictl
parent
2ca9d36f
Changes
2
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
963211ca
...
...
@@ -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 subtree add --prefix=.makefiles/ makefiles master
touch Makefile
echo "include .makefiles/
makefiles
.mk" >> Makefile
echo "include .makefiles/
base
.mk" >> Makefile
```
Now you can take advantage of the recipes.
...
...
base.mk
View file @
963211ca
NAME
?=
$(
shell
basename
$(CURDIR)
)
VERSION
?=
$(
shell
git describe
--tags
--dirty
2>/dev/null
)
# Get the location of this makefile.
MK_DIR
:=
$(
dir
$(
abspath
$(
lastword
$(MAKEFILE_LIST)
)))
.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
gitlab-runner
exec
shell
--builds-dir
'.builds'
--env
CI_PROJECT_NAME
=
$(NAME)
${action}
include
$(MK_DIR)/makefiles.mk
.PHONY
::
config help ci version .FORCE
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment