davidrmiller / biosim4

Biological evolution simulator
Other
3.1k stars 435 forks source link

Makefile improvements #65

Closed davidrmiller closed 1 year ago

davidrmiller commented 2 years ago

The purpose of this issue is to invite suggestions for restructuring and simplifying the Makefile. The existing Makefile was auto-generated from an IDE. It is not optimally structured and has at least one deficiency that I'm aware of:

In the existing Makefile, source files don't get recompiled when the header files they depend on are modified. The solution proposed by @cavac in #59 would add "src/*.h" as a dependency for every source file, so that if any header file is modified, all source files get recompiled. That would be easy to implement and would need no further maintenance, but would result in unnecessary recompilations when any header file is modified.

I suspect that the Makefile could be considerably simplified while also taking care of the header dependencies.