News for hackers. Stuff that matters.
Re:Ask HN: In what creative ways are you using Makefiles? by yabadabadoo on Monday July 24, 2017 @03:56AM (#14836623)
I use make to pre-compile markdown into HTML for a static website.
Re:Ask HN: In what creative ways are you using Makefiles? by JdeBP on Monday July 24, 2017 @08:09AM (#14837740)
I use redo to build the menus for a GOPHER site. It's the same principle. Make changes; run redo; menus get updated automatically. I also use it to rebuild the indexes for package repositories after making changes.

See gopher://jdebp.info/1/Repository/freebsd/ under "how this site is built" and gopher://jdebp.info/1/Repository/debian/dists/ .

See also gopher://jdebp.info/h/Softwares/djbwares/guide/gopherd.html .

Re:Ask HN: In what creative ways are you using Makefiles? by stephenr on Monday July 24, 2017 @04:16AM (#14836706)
I'm doing something similar.

I'm building a static(ish) site generator, that features a built-in "configure" command to generate a makefile, so that only changed files and their dependents need to be rebuilt.

That's also part of why it's called a 'static-ish' site generator - it can render stuff into pure static html, but it can also use things like SSI or ESI to embed common things, so e.g. a nav bar/footer could be injected using SSI or ESI, and then when that changes, not every page needs to be re-built.

Edit: s/script/command/