Comment by โ„ ghost

Re: "Managing dotfiles with nothing but a makefile"

In: s/CLI

Right, but then you check those files into a git and push. On the next computer, you pull, and voila: rw-r--r--. Make allows arbitrary rules, like `chmod600` and managing secrets, like a cert for your gemini browser.

โ„ ghost [OP]

Apr 18 ยท 3 weeks ago

4 Later Comments โ†“

๐Ÿš€ SavaRocks ยท Apr 18 at 16:38:

easily fixable with

๐Ÿš€ stack ยท Apr 18 at 19:45:

Yeah but there are all those $^% things and spaces, and somehow eventually I notice that one of the source files doesn't compile which explains why nothing works

โ„ ghost [OP] ยท Apr 18 at 20:23:

If you're writing your own, you don't have to use them. If you're looking at someone else's, running `make -n` (possibly with grep) usually tells you what the intention is.

๐Ÿš€ stack ยท Apr 18 at 20:32:

I will try that. It's always a mystery to me.

Original Post

๐ŸŒ’ s/CLI

โ„ ghost:

โ€” splint.rs/mkdots.gmi

Managing dotfiles with nothing but a makefile โ€” Makefiles make files, and dotfiles are files. I've used a makefile to generate actual dotfiles as hard links for over a year, and it's worked great.

๐Ÿ’ฌ 11 comments ยท Apr 18 ยท 3 weeks ago ยท #cli #dotfiles #linux