build: Remove all installed headers and header directories on uninstall
authorDiego Biurrun <diego@biurrun.de>
Tue, 7 Aug 2012 15:05:34 +0000 (17:05 +0200)
committerDiego Biurrun <diego@biurrun.de>
Tue, 7 Aug 2012 20:54:43 +0000 (22:54 +0200)
library.mak

index 3045640..9742ac4 100644 (file)
@@ -82,9 +82,9 @@ uninstall-libs::
        -$(RM) "$(LIBDIR)/$(LIBNAME)"
 
 uninstall-headers::
-       $(RM) $(addprefix "$(INCINSTDIR)/",$(HEADERS))
+       $(RM) $(addprefix "$(INCINSTDIR)/",$(HEADERS) $(BUILT_HEADERS))
        $(RM) "$(LIBDIR)/pkgconfig/lib$(NAME).pc"
-       -rmdir "$(INCDIR)"
+       -rmdir "$(INCINSTDIR)"
 endef
 
 $(eval $(RULES))