simplify setting of TARGET_* variables