Skip to content

Commit

Permalink
mk: optimize external depth git checkout
Browse files Browse the repository at this point in the history
  • Loading branch information
sreimers committed Dec 28, 2023
1 parent ab9bb57 commit af42461
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -153,15 +153,14 @@ external_dir:
external: external_dir external/re external/baresip

external/re:
$(shell [ ! -d external/re ] && \
git -C external clone https://github.com/baresip/re.git)
git -C external/re checkout $(LIBRE_VERSION)
$(HIDE) [ ! -d external/re ] && \
git -C external clone -b $(LIBRE_VERSION) --depth=1 \
https://github.com/baresip/re.git

external/baresip:
$(shell [ ! -d external/baresip ] && \
git -C external clone \
https://github.com/baresip/baresip.git)
git -C external/baresip checkout $(BARESIP_VERSION)
$(HIDE) [ ! -d external/baresip ] && \
git -C external clone -b $(BARESIP_VERSION) --depth=1 \
https://github.com/baresip/baresip.git


##############################################################################
Expand Down

0 comments on commit af42461

Please sign in to comment.