Makefile: do not require lua pkgconfig unless you intend build lua module
parent
9bc7400668
commit
fc4c60f233
11
src/Makefile
11
src/Makefile
|
@ -1,12 +1,9 @@
|
||||||
PKGDEPS := openssl zlib lua
|
PKGDEPS := openssl zlib
|
||||||
|
|
||||||
ifeq ($(shell pkg-config --print-errors --exists $(PKGDEPS) || echo fail),fail)
|
|
||||||
$(error Build dependencies are not met)
|
|
||||||
endif
|
|
||||||
|
|
||||||
# lua module
|
# lua module
|
||||||
ifneq ($(LUAAPK),)
|
ifneq ($(LUAAPK),)
|
||||||
LIBAPK := YesPlease
|
LIBAPK := YesPlease
|
||||||
|
PKGDEPS += lua
|
||||||
shlibs-y += apk.so
|
shlibs-y += apk.so
|
||||||
apk.so-objs := lua-apk.o
|
apk.so-objs := lua-apk.o
|
||||||
CFLAGS_lua-apk.o := -DAPK_VERSION=\"$(FULL_VERSION)\"
|
CFLAGS_lua-apk.o := -DAPK_VERSION=\"$(FULL_VERSION)\"
|
||||||
|
@ -16,6 +13,10 @@ install-LUA_LIB-y := $(INSTALLDIR) $(DESTDIR)$(LUA_LIBDIR) \
|
||||||
$(INSTALL) $(LUA_LIB-y) $(DESTDIR)$(LUA_LIBDIR)
|
$(INSTALL) $(LUA_LIB-y) $(DESTDIR)$(LUA_LIBDIR)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(shell pkg-config --print-errors --exists $(PKGDEPS) || echo fail),fail)
|
||||||
|
$(error Build dependencies are not met)
|
||||||
|
endif
|
||||||
|
|
||||||
progs-y += apk
|
progs-y += apk
|
||||||
apk-objs := apk.o add.o del.o fix.o update.o info.o \
|
apk-objs := apk.o add.o del.o fix.o update.o info.o \
|
||||||
search.o upgrade.o cache.o ver.o index.o fetch.o \
|
search.o upgrade.o cache.o ver.o index.o fetch.o \
|
||||||
|
|
Loading…
Reference in New Issue