Whole environment damage including the manufacturing should be taxed. Of course this can only be estimated.
Every engine and car produces different environment waste.
For example a Tesla S produces much more carbon in it's production than a gasoline car. There are also other toxins which are produced concerning different type of cars.
A diesel produces NOx but can reduce it with filters.
Just taxing the fuel used is just stupid.