3 ms·
Actually, Rake has both. You can define file targets using "file", but I found that for smaller projects it just becomes a more verbose make.
by steinuil 9y ago
Actually, Rake has both. You can define file targets using "file", but I found that for smaller projects it just becomes a more verbose make.
- bjpbakker 9y agoTrue, Rake also has file tasks. There still are tasks and not much like file targets in Make.
- shoo 9y agoi think Rake is one of the various newer re-implementations of make that more or less miss the point of what is good about make. make is pretty neat if you think about it as a framework to help you compute/derive values from other values. each value happens to be stored in the filesystem as a file. in contrast, many of the newer build-tool make replacements seem to miss the whole value of values and either push or force you in a direction of doing actions with side effects.
- matt4077 9y agoThey are pretty much the same: file 'blogpost.html' # we want to produce blogpost.html # this rule specifies how to build # any .html from the source rule ".html" => ".md" do |t| sh "pandoc -o #{t.name} #{t.source}" end