Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
eic_container
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
containers
eic_container
Commits
a2bf8db5
Commit
a2bf8db5
authored
2 years ago
by
Wouter Deconinck
Browse files
Options
Downloads
Patches
Plain Diff
fix: makefile fixes
parent
e54f5df3
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!540
feat: install environment and push to buildcache with Makefile
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
spack-environment/Makefile
+20
-13
20 additions, 13 deletions
spack-environment/Makefile
with
20 additions
and
13 deletions
spack-environment/Makefile
+
20
−
13
View file @
a2bf8db5
MAKEFLAGS
+=
-Orecurse
SPACK
?=
spack
SPACK_INSTALL_FLAGS
+=
--no-check-signature
export
SPACK_COLOR
=
always
SPACK_ENV
?=
dev
BUILDCACHE
:=
$(
SPACK_ENV
)
/cache
.PHONY
:
all clean
all
:
push
all
:
$(SPACK_ENV)/
push
ifeq
(,$(filter clean,$(MAKECMDGOALS)))
include
$
{
SPACK_ENV
}
/spack.mk
include
$
(
SPACK_ENV
)
/spack.mk
endif
${SPACK_ENV}/push
:
$(addprefix ${SPACK_ENV}/push/
,
$(SPACK_PACKAGE_IDS))
$(SPACK)
buildcache
update-index
--directory
$(BUILDCACHE)
$(SPACK_ENV)/push
:
$(addprefix $(SPACK_ENV)/push/
,
$($(SPACK_ENV)/SPACK_PACKAGE_IDS))
@
mkdir
-p
$(
BUILDCACHE
)
$(
foreach buildcache,
$(
BUILDCACHE
)
,
$(
SPACK
)
buildcache update-index
$(
buildcache
)
;)
$
{
SPACK_ENV
}
/push/%
:
$
{
SPACK_ENV
}
/install/%
@mkdir
-p
$(
dir
$@
)
$(
foreach
buildcache,
$(
BUILDCACHE
)
,
$(
SPACK
)
buildcache create
--allow-root
--only
=
package
--unsigned
$(
buildcache
)
/
$(
HASH
);)
@touch
$@
$
(
SPACK_ENV
)
/push/%
:
$
(
SPACK_ENV
)
/install/%
@
mkdir
-p
$(
dir
$@
)
$(
foreach buildcache,
$(
BUILDCACHE
)
,
$(
SPACK
)
buildcache create
--allow-root
--only
=
package
--unsigned
$(
buildcache
)
/
$(
HASH
)
;)
# push
$(
SPEC
)
@
touch
$@
$
{
SPACK_ENV
}
/spack.lock
:
$
{
SPACK_ENV
}
/spack.yaml
$(SPACK)
concretize
--force
$
(
SPACK_ENV
)
/spack.lock
:
$
(
SPACK_ENV
)
/spack.yaml
Makefile
$(
SPACK
)
concretize
--force
--fresh
$
{
SPACK_ENV
}
/spack.mk
:
$
{
SPACK_ENV
}
/spack.lock
$(SPACK)
env
depfile
--output
$@
--make-
target-prefix
""
$
(
SPACK_ENV
)
/spack.mk
:
$
(
SPACK_ENV
)
/spack.lock
Makefile
$(
SPACK
)
env
depfile
--output
$@
--make-
prefix
$(
SPACK_ENV
)
clean
:
rm
-rf
$
{
SPACK_ENV
}
/spack.lock
$
{
SPACK_ENV
}
/spack.mk
rm
-rf
$
(
SPACK_ENV
)
/spack.lock
$
(
SPACK_ENV
)
/spack.mk
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment