View Full Version : perl script
Unregistered
10-04-2001, 02:55 PM
I was wondering if anyone had ever used a perl script with gcc. I was thinking that it might be nice to be able to use the script to invoke the compiler with the optiions I wanted already stored in there. Like ./perlscript my.c so I wouldn't have to type it all out every time or run to a gui everytime.
Strider
10-05-2001, 06:40 AM
You could, but it might be better to keep the build and execution phase separate. I always prefer to use a makefile for builds and keep a simple script for the purpose of execution.
David
The gimp uses one for their builds, which creates a Makefile. So you run perl Makefile.pl and then type make.
vBulletin® v3.7.0, Copyright ©2000-2008, Jelsoft Enterprises Ltd.