1 |
|
2 |
_DISTRIB_NAME := $(shell sed -n '/^.*distribution=\([^,]*\),.*/s//\1/p' /etc/product.id) |
3 |
DISTRIB_NAME = "$(_DISTRIB_NAME)" |
4 |
DISTRIB_VERSION = $(shell sed -n '/^.*version=\([^,]*\),.*/s//\1/p' /etc/product.id) |
5 |
DISTRIB_TYPE = $(shell sed -n '/^.*type=\([^,]*\),.*/s//\1/p' /etc/product.id) |
6 |
DISTRIB_DESCR = "$(_DISTRIB_NAME) release $(DISTRIB_VERSION)" |
7 |
|
8 |
|
9 |
# not config, but useful everywhere :) |
10 |
ARCH := $(patsubst i%86,i386,$(shell uname -m)) |
11 |
ARCH := $(patsubst sparc%,sparc,$(ARCH)) |
12 |
ARCH := $(patsubst arm%,arm,$(ARCH)) |
13 |
|
14 |
PKG_ARCH := $(patsubst i386,i586,$(ARCH)) |
15 |
|
16 |
ifeq (x86_64, $(ARCH)) |
17 |
LIB = lib64 |
18 |
else |
19 |
LIB = lib |
20 |
endif |