mirror of
https://github.com/wassname/DeepTime.git
synced 2026-06-27 19:29:06 +08:00
28 lines
539 B
Makefile
28 lines
539 B
Makefile
ROOT := $(shell dirname $(realpath $(firstword ${MAKEFILE_LIST})))
|
|
|
|
build: .require-config
|
|
python -m experiments.forecast --config_path=${config} build_experiment
|
|
|
|
build-all: .require-path
|
|
for config in $(shell ls ${path}/*.gin); do \
|
|
make build config=$$config; \
|
|
done
|
|
|
|
run: .require-command
|
|
bash -c "`cat ${ROOT}/${command}`"
|
|
|
|
.require-config:
|
|
ifndef config
|
|
$(error config is required)
|
|
endif
|
|
|
|
.require-command:
|
|
ifndef command
|
|
$(error command is required)
|
|
endif
|
|
|
|
.require-path:
|
|
ifndef path
|
|
$(error path is required)
|
|
endif
|