aboutsummaryrefslogtreecommitdiffstats
path: root/common.mak
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2008-02-25 09:22:11 +0000
committerMåns Rullgård <mans@mansr.com>2008-02-25 09:22:11 +0000
commit76a448ed4f5a3f588dcb2a0ccb0f6a4b4a49e957 (patch)
tree8e34d9332aecb8c06be72a25d0c50596b4e9392a /common.mak
parentbd58e7f730b45e893df2065cd1cf7af3b545e2bf (diff)
downloadffmpeg-76a448ed4f5a3f588dcb2a0ccb0f6a4b4a49e957.tar.gz
Install headers in $prefix/include/$libname
Install each library's headers in $prefix/include/$libname. The installed headers use #include "lib*/*.h"; applications are expected to do the same. Specify only $prefix/include in .pc files. Originally committed as revision 12194 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'common.mak')
-rw-r--r--common.mak8
1 files changed, 5 insertions, 3 deletions
diff --git a/common.mak b/common.mak
index b809748f3e..2ba85157be 100644
--- a/common.mak
+++ b/common.mak
@@ -79,10 +79,12 @@ install-lib-static: $(LIBNAME)
install -m 644 $(LIBNAME) "$(LIBDIR)"
$(LIB_INSTALL_EXTRA_CMD)
+INCINSTDIR = $(INCDIR)/lib$(NAME)
+
install-headers:
- install -d "$(INCDIR)"
+ install -d "$(INCINSTDIR)"
install -d "$(LIBDIR)/pkgconfig"
- install -m 644 $(addprefix $(SRC_DIR)/,$(HEADERS)) "$(INCDIR)"
+ install -m 644 $(addprefix $(SRC_DIR)/,$(HEADERS)) "$(INCINSTDIR)"
install -m 644 $(BUILD_ROOT)/lib$(NAME).pc "$(LIBDIR)/pkgconfig"
uninstall: uninstall-libs uninstall-headers
@@ -95,7 +97,7 @@ uninstall-libs:
-rm -f "$(LIBDIR)/$(LIBNAME)"
uninstall-headers::
- rm -f $(addprefix "$(INCDIR)/",$(HEADERS))
+ rm -f $(addprefix "$(INCINSTDIR)/",$(HEADERS))
rm -f "$(LIBDIR)/pkgconfig/lib$(NAME).pc"
tests: $(TESTS)