Using sed in a Makefile
===

I'm trying to make it so that a block of text of a file (`conf.py`) in each subdirectory (stored in the variable `SUBDIRS`) is deleted. This block of text is lies within the tags `#--Begin` and `#--End`. See code sample below. For the sake of being neat and not having to make an extra shell script to run from within the makefile, I'd like to use a sed command from within the makefile, but am having trouble doing so. I cannot find the solution to this on any other forum post, so any help would be gratefully received.

> SUBDIRS = (list of all subdirectories that contain a relevant conf.py)
$(SUBDIRS):  
    sed '/#--Begin/,/#--End/d' Docs/$@/conf.py  

Nothing happens as a result of this command.

Thanks!