mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 12:03:31 +01:00
projects-dir.mk: Fix JANWARE_USER auto-definition
Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
1c0416c8d4
commit
58cccff875
1 changed files with 6 additions and 2 deletions
|
|
@ -6,7 +6,7 @@
|
|||
#
|
||||
# Some of its targets download software from janware GmbH servers. For those,
|
||||
# you will need a janware.com user account. Ask admin@janware.com if you want
|
||||
# one.
|
||||
# one, then define the JANWARE_USER=<janware user name> environment variable.
|
||||
#
|
||||
# Current documentation on how this Makefile is meant to be used can be found
|
||||
# under https://janware.com/wiki/pub/en/sw/build/. Running "make doc-module"
|
||||
|
|
@ -59,8 +59,12 @@ endif
|
|||
|
||||
BUILD_PROJECTS = $(filter-out $(EXCLUDE_FROM_BUILD),$(PROJECTS))
|
||||
|
||||
ifeq ($(JANWARE_USER),)
|
||||
ifndef ($(JANWARE_USER),)
|
||||
export JANWARE_USER = $(shell id -un)
|
||||
$(warning Assuming JANWARE_USER=$(JANWARE_USER), explicitly set environment variable to turn off this warning!)
|
||||
endif
|
||||
|
||||
ifeq ($(JANWARE_USER),)
|
||||
UNAVAILABLE_TARGETS ?= pull.done update.done clone.done
|
||||
else
|
||||
UNAVAILABLE_TARGETS ?=
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue