Ignoring *.d files for makefile dependency generation.
Refactored to separate out functionality and sequence so that users can extend functionality for their own purposes.