CP = ln -f output: pngs/ldap.png jpgs/ldap.jpg: ../../ldap/ldap.jpg mkdir -p $(dir $@) $(CP) $< $@ pngs/%.png: jpgs/%.jpg mkdir -p $(dir $@) $(info making $(@F) in $(@D)) magick $< $@ clean: $(RM) -r pngs jpgs