%% Mark Therieau <[EMAIL PROTECTED]> writes:

  mt> CSRCS = file1.c file2.c file999.c file1000.c
  mt> c.pfs:
  mt>   @rm -f $@
  mt>   @$(foreach f,$(CSRCS),$(shell echo $(f) >> $@))

Do the rm in a $(shell ...) as well:

  c.pfs:
        @$(shell rm -f $@); \
         $(foreach f,$(CSRCS),$(shell echo $(f) >> $@))

This is going to be slow, though...

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <[EMAIL PROTECTED]>          Find some GNU make tips at:
 http://www.gnu.org                      http://make.paulandlesley.org
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist


_______________________________________________
Help-make mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/help-make

Reply via email to