diff options
author | John Estabrook <jestabro@vyos.io> | 2025-03-26 13:03:54 -0500 |
---|---|---|
committer | John Estabrook <jestabro@vyos.io> | 2025-03-27 09:14:21 -0500 |
commit | e5cc2004b4d2ea8c3d5b7a9cf75e0ba11a7f8b34 (patch) | |
tree | 14b419dcd053c508d5f0d4ee2bfe42c69ab03f86 | |
parent | 3f0b370a399340089d28b2b4c712a920b63f6af5 (diff) | |
download | vyos-1x-e5cc2004b4d2ea8c3d5b7a9cf75e0ba11a7f8b34.tar.gz vyos-1x-e5cc2004b4d2ea8c3d5b7a9cf75e0ba11a7f8b34.zip |
T7289: update Makefile for libvyosconfig as git submodule
-rw-r--r-- | Makefile | 10 |
1 files changed, 4 insertions, 6 deletions
@@ -23,12 +23,10 @@ op_xml_obj = $(op_xml_src:.xml.in=.xml) .PHONY: libvyosconfig .ONESHELL: libvyosconfig: - if ! [ -f $(LIBVYOSCONFIG_BUILD_PATH) ]; then - rm -rf /tmp/libvyosconfig && \ - git clone https://github.com/vyos/libvyosconfig.git /tmp/libvyosconfig || exit 1 - cd /tmp/libvyosconfig && \ - git checkout 27e4b0a5eaf77d9a1f5e1f6dcaa109e5d73c51d1 || exit 1 - eval $$(opam env --root=/opt/opam --set-root) && ./build.sh + if test ! -f $(LIBVYOSCONFIG_BUILD_PATH); then + rm -rf /tmp/libvyosconfig && mkdir /tmp/libvyosconfig + cp -r libvyosconfig /tmp && cd /tmp/libvyosconfig && \ + eval $$(opam env --root=/opt/opam --set-root) && ./build.sh || exit 1 fi .PHONY: interface_definitions |