From c86eb7ae86befd2f0cc9e9a50fd9ed1c0bc5da6e Mon Sep 17 00:00:00 2001
From: Diego Biurrun <diego@biurrun.de>
Date: Sat, 11 Feb 2006 16:50:45 +0000
Subject: [PATCH] Add installlib and install-headers targets like everywhere
 else.

Originally committed as revision 4977 to svn://svn.ffmpeg.org/ffmpeg/trunk
---
 libavcodec/libpostproc/Makefile | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/libavcodec/libpostproc/Makefile b/libavcodec/libpostproc/Makefile
index e293721d037..05a8ce4ea09 100644
--- a/libavcodec/libpostproc/Makefile
+++ b/libavcodec/libpostproc/Makefile
@@ -48,7 +48,7 @@ $(LIB): $(OBJS)
 	$(AR) rc $@ $(OBJS)
 	$(RANLIB) $@
 
-install: all
+install: all install-headers
 ifeq ($(BUILD_SHARED),yes)
 ifeq ($(CONFIG_WIN32),yes)
 	install $(INSTALLSTRIP) -m 755 $(SLIBNAME) "$(prefix)"
@@ -63,6 +63,11 @@ else
 	$(LDCONFIG) || true
 endif
 endif
+
+installlib: all install-headers
+	install -m 644 $(LIB) "$(libdir)"
+
+install-headers:
 	mkdir -p $(prefix)/include/postproc
 	install -m 644 $(SRC_PATH)/libavcodec/libpostproc/postprocess.h $(prefix)/include/postproc/postprocess.h
 	install -d $(libdir)/pkgconfig
-- 
GitLab