Title: RE: Scripting inside Makefile

The formed solution:

LIST   = $(wildcard *CDU*)
LIST1  = $(subst CDU,CDU_1,$(LIST))
LIST2  = $(subst CDU,CDU_2,$(LIST))

all: $(LIST1) $(LIST2)

$(LIST1): $(LIST)
        sed -e "s/CDU/CDU_1/g" $(subst CDU_1,CDU,$@) > $@

$(LIST2): $(LIST)
        sed -e "s/CDU/CDU_2/g" $(subst CDU_2,CDU,$@) > $@


Now the problem is the processing of the newly created
files upon next execution. If something in the original
changes - I don't care to remove all outputs and reprocess,
otherwise, skip.

Tnx


 
 
This e-mail message has been sent by Elbit Systems Ltd.
and is for the use of the intended recipients only.
The message may contain privileged or commercial confidential information .
If you are not the intended recipient you are hereby notified that any use,
distribution or copying of this communication is strictly prohibited,
and you are requested to delete the e-mail and any attachments
and notify the sender immediately.

Reply via email to