1 # General settings included by all packages
6 OMD_PHYSICAL_BASE = /opt/omd
7 OMD_ROOT = $(OMD_BASE)/versions/$(OMD_VERSION)
10 P5TMPDIST = $(shell pwd)/../perl-modules/dist
12 # Determine the distro we are running on and its version. Nasty here:
13 # We do not known wether we are called from the main Makefile or
14 # from a package Makefile. There we do not know the path to the
15 # 'distro' script. We simply try out both paths...
17 DISTRO_INFO = $(shell ./distro 2>/dev/null || ../../distro)
18 DISTRO_NAME = $(word 1, $(DISTRO_INFO))
19 DISTRO_VERSION = $(word 2, $(DISTRO_INFO))
21 # Depending on the distro we include a Makefile with distro-
22 # specific variables. Here the same problem appears again.
23 # Maybe anyone has a simpler solution?
25 -include distros/Makefile.$(DISTRO_NAME)_$(DISTRO_VERSION)
26 ifeq ($(OS_PACKAGES),)
27 include ../../distros/Makefile.$(DISTRO_NAME)_$(DISTRO_VERSION)
30 # Net result -> all Makefiles have now access to the linux distribution