Mel Brooks would be rolling in his grave...if he was dead...and he didn't write this.
Taken From Wikipedia:
Spaceballs is a 1987 science fiction parody film of Star Wars co-written, directed by, and starring Mel Brooks. It was released on June 24, 1987, and earned only modest returns, but has gone on to become a cult classic on video.
Its plot and characters contain numerous parodies of elements from the original Star Wars trilogy and Star Trek in particular, as well as other popular science fiction films. The script was written by Mel Brooks in only six months, and was approved by George Lucas, as he was a big fan of Brooks's previous films. Lucas' Industrial Light & Magic was also involved in the special visual effects for the film. As of 2007, an animated sequel TV series is in preparation.