Getting DevStudio dependencies correct
-
I am working on a project in CWeb, where I work on a source file
foo.w
, which is then compiled by a custom build step to producefoo.c
,foo.h
, andfoo.tex
. I includefoo.c
,foo.h
, andfoo.tex
in my project, and use the basic C compiler settings to control the compilation of the .c files and another custom build rule to control the compilation of the documentationfoo.tex
tofoo.pdf
. Here is where I get into trouble. A makefile would have no problem understanding thatfoo.tex
depends onfoo.w
and thatfoo.pdf
depends onfoo.tex
, so iffoo.w
has been changed, a build must FIRST compilefoo.w
tofoo.tex
and THEN compilefoo.tex
tofoo.pdf
. I can't seem to get DevStudio to understand this, so when I editfoo.w
and hit build, it first compilesfoo.tex
tofoo.pdf
and then compilesfoo.w
tofoo.tex
!. Any thoughts? This is analogous to things people must also have gone through working with Bison and Flex in DevStudio. Bomb our homes and threaten our children, and, as difficult as it is, we will still love you --- Martin Luther King, Jr. -
I am working on a project in CWeb, where I work on a source file
foo.w
, which is then compiled by a custom build step to producefoo.c
,foo.h
, andfoo.tex
. I includefoo.c
,foo.h
, andfoo.tex
in my project, and use the basic C compiler settings to control the compilation of the .c files and another custom build rule to control the compilation of the documentationfoo.tex
tofoo.pdf
. Here is where I get into trouble. A makefile would have no problem understanding thatfoo.tex
depends onfoo.w
and thatfoo.pdf
depends onfoo.tex
, so iffoo.w
has been changed, a build must FIRST compilefoo.w
tofoo.tex
and THEN compilefoo.tex
tofoo.pdf
. I can't seem to get DevStudio to understand this, so when I editfoo.w
and hit build, it first compilesfoo.tex
tofoo.pdf
and then compilesfoo.w
tofoo.tex
!. Any thoughts? This is analogous to things people must also have gone through working with Bison and Flex in DevStudio. Bomb our homes and threaten our children, and, as difficult as it is, we will still love you --- Martin Luther King, Jr.Hi, Why not create 2 different projects and just have foo.w in one and the other files in the other project. You can then set project dependencies to have the second project (the one with .c,.h and .tex) files to be dependent on the first one. So, when you hit build it will compile the first project (seeing your .w has changed) and then compile the second one (with the newly generated files). I've never worked with Bison and Flex but this may work.. HTH Jignesh