build: Remove all installed headers and header directories on uninstall

This commit is contained in:
Diego Biurrun 2012-08-07 17:05:34 +02:00
parent dfd9159f3d
commit a2b4d1df52

View 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))