“Make” as a static site generator (2022)
A problem with this approach is that deleting a file from source/ does not delete it from build/.<p>In my own projects, simply rebuilding the whole site is fast enough, so I opt to remove the whole build folder before a rebuild:<p><a href="https://github.com/jez/jez.github.io/blob/source/Makefile#L10">https://github.com/jez/jez.github.io/blob/source/Makefile#L1...</a><p>This defeats a big part of why you’d want a build system in the first place (incremental builds), but at least if you know the page you want to regenerate you can still `make` that file directly.<p>If there’s a common workaround for this pattern in makefiles I’d love to learn it.