target = generated_web_page.html .DELETE_ON_ERROR: all: $(target) $(target): @echo "Starting to generate $@..." @echo "
" > $@ @echo "bla bla" >> $@ @sleep 2 @echo "...hitting some error for $@" ; exit 42 @echo "" >> $@ @echo "Completed $@." clean: -rm $(target)