build: Add uninstall-pkgconfig target to match install-lib*-pkgconfig
authorDiego Biurrun <diego@biurrun.de>
Mon, 6 Nov 2017 16:44:33 +0000 (17:44 +0100)
committerDiego Biurrun <diego@biurrun.de>
Thu, 9 Nov 2017 06:06:21 +0000 (07:06 +0100)
Makefile
avbuild/library.mak

index b1a2c30..1c10f15 100644 (file)
--- 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)"
index 4e4b3f1..a4b57e8 100644 (file)
@@ -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))