-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
25 lines (17 loc) · 700 Bytes
/
Makefile
File metadata and controls
25 lines (17 loc) · 700 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
CHANNELS = $(addprefix -c ,$(shell tr '\n' ' ' <$(RECIPE_DIR)/channels)) -c local
METAJSON = $(RECIPE_DIR)/meta.json
RECIPEFILES = $(addprefix $(RECIPE_DIR)/,conda_build_config.yaml meta.yaml)
TARGETS = env meta package
export RECIPE_DIR := $(shell cd ./recipe && pwd)
spec = $(call val,name)$(2)$(call val,version)$(2)$(call val,$(1))
val = $(shell jq -r .$(1) $(METAJSON))
.PHONY: $(TARGETS)
all:
$(error Valid targets are: $(TARGETS))
env: package
conda create -y -n $(call spec,buildnum,-) $(CHANNELS) $(call spec,build,=)
meta: $(METAJSON)
package: meta
conda build $(CHANNELS) --error-overlinking --override-channels $(RECIPE_DIR)
$(METAJSON): $(RECIPEFILES)
condev-meta