configure enable/disable docs
enable shared now works for generic target as well