pkg-config can be unavailable, leading to empty PKGCFGDIR, thus 'mkdir -p' fails. fixed by checking if PKGCFGDIR is empty

This commit is contained in:
Nguyen Anh Quynh 2015-05-21 12:58:38 +08:00
parent a071b4750a
commit f0677abb8f

View File

@ -252,7 +252,12 @@ LIBOBJ += $(LIBOBJ_ARM) $(LIBOBJ_ARM64) $(LIBOBJ_MIPS) $(LIBOBJ_PPC) $(LIBOBJ_SP
LIBOBJ += $(OBJDIR)/MCInst.o
ifeq ($(PKG_EXTRA),)
PKGCFGDIR = $(LIBDATADIR)/pkgconfig
else
PKGCFGDIR ?= $(LIBDATADIR)/pkgconfig
endif
API_MAJOR=$(shell echo `grep -e CS_API_MAJOR include/capstone/capstone.h | grep -v = | awk '{print $$3}'` | awk '{print $$1}')
VERSION_EXT =