28 lines
831 B
Makefile
28 lines
831 B
Makefile
|
|
SUBMODULE_FIGURES := \
|
|
ihsm-secondary-mesh/gear_plan_1.svg \
|
|
ihsm-secondary-mesh/gear_plan_2.svg \
|
|
ihsm-secondary-mesh/gear_plan_3.svg \
|
|
ihsm-secondary-mesh/render_exp_1.png \
|
|
ihsm-secondary-mesh/render_exp_2.png \
|
|
ihsm-secondary-mesh/render_side_1.png \
|
|
ihsm-secondary-mesh/render_side_2.png \
|
|
ihsm-secondary-mesh/schema_wire.svg
|
|
|
|
|
|
.ONESHELL:
|
|
|
|
all: pull-submodules $(notdir SUBMODULE_FIGURES)
|
|
|
|
pull-submodules:
|
|
git -C ihsm-secondary-mesh pull
|
|
|
|
$(notdir SUBMODULE_FIGURES):
|
|
@for f in ${SUBMODULE_FIGURES}; do
|
|
FIG_FN="$$(basename "$$f")"
|
|
FIG_DIR="$$(dirname "$$f")"
|
|
cp "$$f" "$$FIG_FN"
|
|
git -C "$$FIG_DIR" remote get-url $$(git -C "$$FIG_DIR" config "branch.$$(git -C "$$FIG_DIR" branch --show-current).remote") > "$${FIG_FN}.git_remote"
|
|
git -C "$$FIG_DIR" describe --always --tags > "$${FIG_FN}.git_rev"
|
|
done
|
|
|