diff options
author | Antoine Ginies <aginies@mandriva.com> | 2011-01-19 10:44:49 +0000 |
---|---|---|
committer | Antoine Ginies <aginies@mandriva.com> | 2011-01-19 10:44:49 +0000 |
commit | 530a16ec071db0e24e6e949e265a96848864967c (patch) | |
tree | fe40cacd28d67b98186754c551b7fd339ebc7e17 /Makefile.config | |
download | drakx-backup-do-not-use-530a16ec071db0e24e6e949e265a96848864967c.tar drakx-backup-do-not-use-530a16ec071db0e24e6e949e265a96848864967c.tar.gz drakx-backup-do-not-use-530a16ec071db0e24e6e949e265a96848864967c.tar.bz2 drakx-backup-do-not-use-530a16ec071db0e24e6e949e265a96848864967c.tar.xz drakx-backup-do-not-use-530a16ec071db0e24e6e949e265a96848864967c.zip |
add mes5-2.6.33 branch
Diffstat (limited to 'Makefile.config')
-rw-r--r-- | Makefile.config | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/Makefile.config b/Makefile.config new file mode 100644 index 000000000..0eb0d764e --- /dev/null +++ b/Makefile.config @@ -0,0 +1,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 |