commit | d46a4f2a25da3d82c73498d28230e798d4d365b2 | [log] [tgz] |
---|---|---|
author | Nguyen Anh Quynh <aquynh@gmail.com> | Fri Apr 14 18:43:06 2017 +0800 |
committer | Nguyen Anh Quynh <aquynh@gmail.com> | Fri Apr 14 18:43:06 2017 +0800 |
tree | 0a020a4326cc5804d43f593aec1888363b6c2fb8 | |
parent | 3f51966f01fdbafea41f091b059122d518242fc2 [diff] |
Makefile install works even when pkg-config is missing
diff --git a/Makefile b/Makefile index 932c49a..7dfa84e 100644 --- a/Makefile +++ b/Makefile
@@ -281,6 +281,9 @@ PKGCFGDIR = $(LIBDATADIR)/pkgconfig else PKGCFGDIR ?= $(LIBDATADIR)/pkgconfig +ifeq ($(PKGCFGDIR),) +PKGCFGDIR = $(LIBDATADIR)/pkgconfig +endif endif API_MAJOR=$(shell echo `grep -e CS_API_MAJOR include/capstone/capstone.h | grep -v = | awk '{print $$3}'` | awk '{print $$1}')