Shouldn't the $(sys.workdir)/UPGRADED be $(file_represents_success) ?