XDG_CONFIG=$(HOME)/.config/ LN = @ln -sf .PHONY: xdg_config xdg_config: @mkdir -p $(XDG_CONFIG) .PHONY: go go: @go install golang.org/x/tools/gopls@latest @go install honnef.co/go/tools/cmd/staticcheck@latest @go install github.com/go-delve/delve/cmd/dlv@latest .PHONY: emacs emacs: xdg_config go $(LN) $(PWD)/emacs $(XDG_CONFIG) $(LN) $(PWD)/aspell.en.pws $(HOME)/.aspell.en.pws .PHONY: setup setup: @git config --local user.email "franck@fcuny.net" @git config --local user.name "Franck Cuny" all: setup xdg_config emacs check-dead