aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2017-11-06 17:44:33 +0100
committerDiego Biurrun <diego@biurrun.de>2017-11-09 07:06:21 +0100
commitfbf77b5ac37bf2a807d8336450801d7aecf2e359 (patch)
treeef58c143135cf974835336282c3a0f70d27f28a6
parentfbca6e7d162b9a7105d1059826dfe96616fa803a (diff)
downloadffmpeg-fbf77b5ac37bf2a807d8336450801d7aecf2e359.tar.gz
build: Add uninstall-pkgconfig target to match install-lib*-pkgconfig
-rw-r--r--Makefile2
-rw-r--r--avbuild/library.mak4
2 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index b1a2c301b5..1c10f15462 100644
--- a/Makefile
+++ b/Makefile
@@ -161,7 +161,7 @@ install-data: $(DATA_FILES)
$(Q)mkdir -p "$(DATADIR)"
$(INSTALL) -m 644 $(DATA_FILES) "$(DATADIR)"
-uninstall: uninstall-libs uninstall-headers uninstall-data
+uninstall: uninstall-data uninstall-headers uninstall-libs uninstall-pkgconfig
uninstall-data:
$(RM) -r "$(DATADIR)"
diff --git a/avbuild/library.mak b/avbuild/library.mak
index 4e4b3f196d..a4b57e8824 100644
--- a/avbuild/library.mak
+++ b/avbuild/library.mak
@@ -92,8 +92,10 @@ uninstall-libs::
uninstall-headers::
$(RM) $(addprefix "$(INCINSTDIR)/",$(HEADERS) $(BUILT_HEADERS))
- $(RM) "$(LIBDIR)/pkgconfig/lib$(NAME).pc"
-rmdir "$(INCINSTDIR)"
+
+uninstall-pkgconfig::
+ $(RM) "$(LIBDIR)/pkgconfig/lib$(NAME).pc"
endef
$(eval $(RULES))