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