Skip to content
Snippets Groups Projects
Forked from Adélie Linux / apk-tools
607 commits behind the upstream repository.
  • Natanael Copa's avatar
    fcb540ab
    build: lua module build fixes · fcb540ab
    Natanael Copa authored
    - do not link with -llua. We should not link apk or lua module with it.
    - default to lua 5.2
    - allow override the lua version with LUA_VERSION
    - allow override the lua pkg-config package with LUA_PC
    - only add the pkg-config lua --cflags to the lua module
    fcb540ab
    History
    build: lua module build fixes
    Natanael Copa authored
    - do not link with -llua. We should not link apk or lua module with it.
    - default to lua 5.2
    - allow override the lua version with LUA_VERSION
    - allow override the lua pkg-config package with LUA_PC
    - only add the pkg-config lua --cflags to the lua module
Makefile 589 B
##
# Building apk-tools

-include config.mk

PACKAGE := apk-tools
VERSION := 2.4.0_rc1

##
# Default directories

DESTDIR		:=
SBINDIR		:= /sbin
LIBDIR		:= /lib
CONFDIR		:= /etc/apk
MANDIR		:= /usr/share/man
DOCDIR		:= /usr/share/doc/apk

export DESTDIR SBINDIR LIBDIR CONFDIR MANDIR DOCDIR

##
# Top-level rules and targets

targets		:= src/

##
# Include all rules and stuff

include Make.rules

##
# Top-level targets

install:
	$(INSTALLDIR) $(DESTDIR)$(DOCDIR)
	$(INSTALL) README $(DESTDIR)$(DOCDIR)

test: FORCE
	$(Q)$(MAKE) TEST=y
	$(Q)$(MAKE) -C test

static:
	$(Q)$(MAKE) STATIC=y