mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 03:53:32 +01:00
projects-dir-minimal.mk: Default PROJECTS_DIR_REMOTE_BASE to jw-build's remote
If jw-build is already cloned, infect all other repositories with its remote via PROJECTS_DIR_REMOTE_BASE. Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
561905bab7
commit
fc02dad92c
2 changed files with 12 additions and 3 deletions
|
|
@ -2,7 +2,6 @@
|
|||
# SPDX-License-Identifier: LGPL-2.0-only
|
||||
#
|
||||
# Makefile for managing multiple software repositories in one tree
|
||||
#
|
||||
# (C) Copyright 2001-2025, Jan Lindemann <jan@janware.com>
|
||||
#
|
||||
# This is the top-level Makefile for a software build tree organized by
|
||||
|
|
@ -21,7 +20,12 @@ PROJECTS_MAKEFILE_NAME := $(word $(words $(MAKEFILE_LIST)),$(MAKEFILE_LIST)
|
|||
JWBDIR ?= jw-build
|
||||
|
||||
ifeq ($(origin PROJECTS_DIR_REMOTE_BASE),undefined)
|
||||
PROJECTS_DIR_REMOTE_BASE ?= https://janware.com/code
|
||||
ifneq ($(wildcard $(JWBDIR)),)
|
||||
PROJECTS_DIR_REMOTE_BASE := $(shell /usr/bin/python3 $(JWBDIR)/scripts/jw-projects.py -p . get-auth-info --remote-base --only-values)
|
||||
endif
|
||||
ifeq ($(PROJECTS_DIR_REMOTE_BASE),)
|
||||
PROJECTS_DIR_REMOTE_BASE := https://janware.com/code
|
||||
endif
|
||||
endif
|
||||
|
||||
ifneq ($(findstring ssh://git.janware.com/srv/git,$(PROJECTS_DIR_REMOTE_BASE)),)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue