Go to the Next or Previous section or the Detailed Contents.


3.1.1 target

In the example below we tell EC to compile the target instead of writing the actual name:

options=IGNORECACHE LINEDEBUG DEBUG 
test:   test.e 
        ec $(target).e $(options) 

This may seem to be not too useful, but take a look at this example:

options=IGNORECACHE LINEDEBUG DEBUG 
test:   test.e 
        ec $(target) $(options) 
        if warn 
        echo "Error: compile failed" 
        else 
        echo "Compiled OK... running" 
        $(target) 
        endif 

It's largely equivalent to the old code below, but allows more.

options=IGNORECACHE LINEDEBUG DEBUG 
all:    test 
        echo "ok, running:" 
        test 

test:   test.e 
        ec -q test $(options) 


Go to the Next or Previous section or the Detailed Contents.