- $(RM) $(libdir)/$(TARGETLIB_STATIC)
- $(RM) $(libdir)/$(TARGETLIB_SHARED)
- $(RM) $(libdir)/$(TARGETLIB_LINK1)
- $(RM) $(libdir)/$(TARGETLIB_LINK2)
+ ${RM} ${libdir}/${TARGETLIB_STATIC}
+ ${RM} ${libdir}/${TARGETLIB_SHARED}
+ ${RM} ${libdir}/${TARGETLIB_LINK1}
+ ${RM} ${libdir}/${TARGETLIB_LINK2}
+ @echo "removing headers"
+ @for h in ${HEADERS}; do \
+ ${RM} ${includedir}/wx/${HEADER_SUBDIR}/$$h; \
+ done
+ @if test -d ${includedir}/wx/${HEADER_SUBDIR}; then \
+ rmdir ${includedir}/wx/${HEADER_SUBDIR}; \
+ fi
+ @-rmdir ${includedir}/wx