This question grew out of my earlier question (and discussion in comments to it) on my use of make
-based build environment for R
-based scientific research software project (for my Ph.D. dissertation): make always rebuilds Makefile targets.
Following recommendation of @MadScentist, I created this question to clarify the following aspect of the my build environment. Since I use Makefile
files in almost all sub-directories of my project, I've experienced the problem of correct specification for my research workflow dependencies. While the workflow itself is pretty standard (data collection => data preparation (transform, cleanup, merge, sample) => data analysis => results presentation), the issue IMHO stems from the need to specify build dependencies between artifacts, located in different directories (and of different types, i.e. single intermediate file depends on a set of data files, etc.). I haven't found anywhere any documentation or clear explanation of a solution to this problem.
Your help is greatly appreciated!
UPDATE: Re-phrased the title of the question to clarify the problem.