Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recompile script when an .inc file changes

Status
Not open for further replies.

divod

Technical User
Mar 22, 2005
6
US
I store a few lines in an .inc file that periodically changes. I used .inc because several scripts use this same info. Is there a way to have the scripts automatically recompile if the .inc info changes? (I know I can create a script with the “compile” command and hardcode the names of the scripts in it, but is there a more efficient way to do this.)
 
I have not tested this, but you might try running the .was file instead of the .wax file. I believe this will recompile and run the script, but I am not certain if it does it only if the .was file is newer than the .wax file, or if it will perform the compile regardless.


 
Hi, I use the "make" utility from With a suitably configured makefile, you can run make each time you change an include file and those projects which include that file will be rebuilt.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top