PDA

View Full Version : perl script



Unregistered
10-04-2001, 01: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, 05: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

Nick
10-05-2001, 12:24 PM
The gimp uses one for their builds, which creates a Makefile. So you run perl Makefile.pl and then type make.