Hi I have a perl Script taking an input as argument from command line and based on that performing the compiling operations for my project. How can write the same in Makefile.
#!/usr/local/bin/perl print ("enter the name of model you want to test\n"); $abc = <STDIN>; chomp($abc); $model = $abc; if(-e $model.asm) { system ("sh -c \"rm *.asm *.hex *.lnk *.map *.rel *.rst *.syn *.lst \""); } else { system ("sh -c \"sdcc ../bench/c_test_cases/$model.c\""); system ("sh -c \"mv $model.ihx $model.hex\""); system ("sh -c \"gcc -Wall script_rom.c\""); system ("sh -c \"./a.out $model.hex\""); system ("sh -c \"mv rom.in $model.in\""); system ("sh -c \"cp $model.in ../bench/rom.in\""); } Thanks in Advance :) -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/