Hi,
i'm writing a c++ program that reads in different configuration files and based on the contents of the files, my program will generate a c++ source file to be compiled.
basically, i'm writing a c++ program to generate c++ code based on config files and this is part of a big project so a makefile is being used.
let's call the c++ program that generates the c++ code "Code A" and the c++ program that is generated "Code B."
now my question is: is it possible to have the build process first, compile Code A, and then run it, then that will in turn cause the generation of Code B, and then the build process will just continue on? can this be done through options in the Makefile or something like that or am i going to have to manually compile Code A and then run it everytime i want to build?
thanks. your help is appreciated.
i'm writing a c++ program that reads in different configuration files and based on the contents of the files, my program will generate a c++ source file to be compiled.
basically, i'm writing a c++ program to generate c++ code based on config files and this is part of a big project so a makefile is being used.
let's call the c++ program that generates the c++ code "Code A" and the c++ program that is generated "Code B."
now my question is: is it possible to have the build process first, compile Code A, and then run it, then that will in turn cause the generation of Code B, and then the build process will just continue on? can this be done through options in the Makefile or something like that or am i going to have to manually compile Code A and then run it everytime i want to build?
thanks. your help is appreciated.