ref: 45689f832b1d88ad649bf780e8fc814883f5169a
parent: f5fd72f61ebd5de94f0c8527006d5af5b8cfe113
author: Martin Storsjö <martin@martin.st>
date: Mon Jan 27 09:54:47 EST 2014
Add a "make install" target
--- a/Makefile
+++ b/Makefile
@@ -12,6 +12,7 @@
CFLAGS_M64=-m64
BUILDTYPE=Release
V=Yes
+PREFIX=/usr/local
ifeq (, $(ENABLE64BIT))
ifeq ($(ARCH), x86_64)
@@ -136,6 +137,11 @@
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