abhi shek
abhi shek

Reputation: 17

adding perl script to makefile

I have a file called file_read.pl, i want to use it in my makefile.

test1:
    rm -rf cov_work *.trn INCA_libs *.dsn 
    $(comp) +UVM_VERBOSITY=UVM_MEDIUM +UVM_TESTNAME=wr_rd_all_registers;

how to call that perl script to this target.How to do this?

Upvotes: 0

Views: 532

Answers (1)

choroba
choroba

Reputation: 242343

Generally, you can call perl with the path to the script as an argument:

test1:
    rm -rf cov_work *.trn INCA_libs *.dsn 
    $(comp) +UVM_VERBOSITY=UVM_MEDIUM +UVM_TESTNAME=wr_rd_all_registers
    perl ./file_read.pl

If your script is executable and its shebang points to a valid Perl interpreter, you can even just use

    ./file_read.pl

Upvotes: 1

Related Questions