Add a "make install" target

This commit is contained in:
Martin Storsjö 2014-01-27 14:54:47 +02:00
parent f5fd72f61e
commit 45689f832b

View File

@ -12,6 +12,7 @@ CFLAGS_M32=-m32
CFLAGS_M64=-m64
BUILDTYPE=Release
V=Yes
PREFIX=/usr/local
ifeq (, $(ENABLE64BIT))
ifeq ($(ARCH), x86_64)
@ -136,6 +137,11 @@ $(LIBPREFIX)wels.$(LIBSUFFIX): $(ENCODER_OBJS) $(DECODER_OBJS) $(PROCESSING_OBJS
rm -f $@
$(AR) $(AR_OPTS) $+
install: $(LIBPREFIX)wels.$(LIBSUFFIX)
mkdir -p $(PREFIX)/lib
mkdir -p $(PREFIX)/include/wels
install -m 644 $(LIBPREFIX)wels.$(LIBSUFFIX) $(PREFIX)/lib
install -m 644 codec/api/svc/codec*.h $(PREFIX)/include/wels
ifeq ($(HAVE_GTEST),Yes)
include build/gtest-targets.mk