Makefile: move UNAME_S calculation advance
This commit is contained in:
parent
dbe27845ad
commit
bc78f3a84f
2
Makefile
2
Makefile
|
@ -35,6 +35,7 @@ INCDIR = $(DESTDIR)$(PREFIX)/include
|
||||||
LIBDIR = $(DESTDIR)$(PREFIX)/lib
|
LIBDIR = $(DESTDIR)$(PREFIX)/lib
|
||||||
# on x86_64, we might have /usr/lib64 directory instead of /usr/lib
|
# on x86_64, we might have /usr/lib64 directory instead of /usr/lib
|
||||||
UNAME_M := $(shell uname -m)
|
UNAME_M := $(shell uname -m)
|
||||||
|
UNAME_S := $(shell uname -s)
|
||||||
ifeq ($(UNAME_M), x86_64)
|
ifeq ($(UNAME_M), x86_64)
|
||||||
ifeq (,$(wildcard $(LIBDIR)))
|
ifeq (,$(wildcard $(LIBDIR)))
|
||||||
ifneq ($(UNAME_S), Darwin)
|
ifneq ($(UNAME_S), Darwin)
|
||||||
|
@ -44,7 +45,6 @@ endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
LIBDATADIR = $(LIBDIR)
|
LIBDATADIR = $(LIBDIR)
|
||||||
UNAME_S := $(shell uname -s)
|
|
||||||
ifeq ($(UNAME_S), FreeBSD)
|
ifeq ($(UNAME_S), FreeBSD)
|
||||||
LIBDATADIR = $(DESTDIR)$(PREFIX)/libdata
|
LIBDATADIR = $(DESTDIR)$(PREFIX)/libdata
|
||||||
endif
|
endif
|
||||||
|
|
Loading…
Reference in New Issue