Add basic handling of simple targets and generate the graph.