summaryrefslogtreecommitdiffstats
path: root/Makefile.config
blob: 0eb0d764ed9a39b7b2f19e1f17deb92dd4140aee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19

_DISTRIB_NAME := $(shell sed -n '/^.*distribution=\([^,]*\),.*/s//\1/p' /etc/product.id)
DISTRIB_NAME = "$(_DISTRIB_NAME)"
DISTRIB_VERSION = $(shell sed -n '/^.*version=\([^,]*\),.*/s//\1/p' /etc/product.id)
DISTRIB_TYPE = $(shell sed -n '/^.*type=\([^,]*\),.*/s//\1/p' /etc/product.id)
DISTRIB_DESCR = "Entreprise server release $(DISTRIB_VERSION)"


# not config, but useful everywhere :)
ARCH := $(patsubst i%86,i386,$(shell uname -m))
ARCH := $(patsubst sparc%,sparc,$(ARCH))

PKG_ARCH := $(patsubst i386,i586,$(ARCH))

ifeq (x86_64, $(ARCH))
LIB = lib64
else
LIB = lib
endif