Build system clean-up

Many stuff in makefiles are leftovers from the past commits. They are redundant and make the makefiles much harder to read.