Makefile added with Version 2.2
This commit is contained in:
parent
887f3da39e
commit
f892fdbd69
11
Makefile
11
Makefile
@ -1,4 +1,4 @@
|
|||||||
# git helper Makefile: Version 2.0 (2025-08-05)
|
# git helper Makefile: Version 2.2 (2025-08-10)
|
||||||
default: help
|
default: help
|
||||||
|
|
||||||
.ONESHELL:
|
.ONESHELL:
|
||||||
@ -33,20 +33,27 @@ localinit:
|
|||||||
init: print_head
|
init: print_head
|
||||||
# Init git repo
|
# Init git repo
|
||||||
if [[ -e $(GIT_FLAG) ]]; then
|
if [[ -e $(GIT_FLAG) ]]; then
|
||||||
|
echo -e "\033[1;33mInitialising git submodules...\e[0m"
|
||||||
git submodule init
|
git submodule init
|
||||||
git submodule update
|
git submodule update
|
||||||
fi
|
fi
|
||||||
# Init submodules
|
# Init submodules
|
||||||
for subdir in $$(find . -maxdepth 2 -mindepth 2 -name Makefile | sort); do
|
SUBDIRS=$$(find . -maxdepth 2 -mindepth 2 -name Makefile | sort)
|
||||||
|
for subdir in $$SUBDIRS; do
|
||||||
$(MAKE) --no-print-directory -C $$(dirname $$subdir) init
|
$(MAKE) --no-print-directory -C $$(dirname $$subdir) init
|
||||||
done
|
done
|
||||||
|
if [[ $$SUBDIRS ]]; then
|
||||||
|
$(MAKE) print_head
|
||||||
|
fi
|
||||||
# Create venv if needed
|
# Create venv if needed
|
||||||
if [[ -e $(VENV_FLAG) ]]; then
|
if [[ -e $(VENV_FLAG) ]]; then
|
||||||
if [[ ! -e $(VENV_FOLDER) ]]; then
|
if [[ ! -e $(VENV_FOLDER) ]]; then
|
||||||
|
echo -e "\033[1;33mCreating virtual env...\e[0m"
|
||||||
mkvenv
|
mkvenv
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
# Start local init
|
# Start local init
|
||||||
|
echo -e "\033[1;33mDoing localinit...\e[0m"
|
||||||
$(MAKE) localinit
|
$(MAKE) localinit
|
||||||
|
|
||||||
update_submodules:
|
update_submodules:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user