I have .haml files and want to convert them automatically into .html files and update the latter when .haml is changed.
The generic makefile rule is no problem:
%.html: %.haml
hamlpy $< $@
But now I need a rule or a command to do the following:
- find all
X.hamlfiles intemplates/ - execute
make X.htmlcommand, where X is the same filename (hamlis replaced withhtml).
I can’t find how to do this with GNU Make or Unix find.
If all of your
*.hamlfiles are well name (i.e. no spaces or other funny characters), you can do it with a call tofind(1):