Skip to content

Commit

Permalink
Update make level edition detection
Browse files Browse the repository at this point in the history
Change-Id: I97551598441bf9a50de1434fb5fbac63766097d2
  • Loading branch information
LarsMichelsen committed Dec 18, 2023
1 parent fb409a9 commit d57cc87
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions defines.make
Original file line number Diff line number Diff line change
Expand Up @@ -9,31 +9,31 @@ REPO_PATH := $(realpath $(dir $(lastword $(MAKEFILE_LIST))))
EDITION := raw
EDITION_SHORT := cre

ifneq (,$(wildcard $(REPO_PATH)/enterprise))
ifneq (,$(wildcard $(REPO_PATH)/omd/packages/enterprise))
ENTERPRISE := yes
EDITION := enterprise
EDITION_SHORT := cee
else
ENTERPRISE := no
endif

ifneq (,$(wildcard $(REPO_PATH)/cloud))
ifneq (,$(wildcard $(REPO_PATH)/omd/packages/cloud))
CLOUD := yes
EDITION := cloud
EDITION_SHORT := cce
else
CLOUD := no
endif

ifneq (,$(wildcard $(REPO_PATH)/managed))
ifneq (,$(wildcard $(REPO_PATH)/omd/packages/managed))
MANAGED := yes
EDITION := managed
EDITION_SHORT := cme
else
MANAGED := no
endif

ifneq (,$(wildcard $(REPO_PATH)/saas))
ifneq (,$(wildcard $(REPO_PATH)/omd/packages/saas))
SAAS := yes
EDITION := saas
EDITION_SHORT := cse
Expand Down

0 comments on commit d57cc87

Please sign in to comment.