News for hackers. Stuff that matters.
Re:Ask HN: In what creative ways are you using Makefiles? by voltagex_ on Monday July 24, 2017 @07:41AM (#14837586)
To set up my dotfiles, although I'm not in enough of a routine for it to be truly useful.

    tmux:
    	ln -s $(CURDIR)/.tmux.conf $(HOME)/.tmux.conf
    	tmux source-file ~/.tmux.conf
    
    reload-tmux:
    	tmux source-file ~/.tmux.conf
    
    gitconfig:
    	ln -s $(CURDIR)/.gitconfig $(HOME)/.gitconfig
cd ~/configs then make whatever. ~/configs itself is a git repository.
Re:Ask HN: In what creative ways are you using Makefiles? by SpaceNugget on Monday July 24, 2017 @01:01PM (#14840227)
You should check out Stow, its an already established project that does what you need.
Re:Ask HN: In what creative ways are you using Makefiles? by voltagex_ on Monday July 24, 2017 @07:37PM (#14843740)
What advantage does Stow give me over my current solution? I've always got git and make installed (but I'm not averse to adding something else).
Re:Ask HN: In what creative ways are you using Makefiles? by db48x on Tuesday July 25, 2017 @05:55AM (#14846469)
One advantage would be not having to write "ln -s ..." for every file you want to link. Stow handles file trees as well.