summary refs log tree commit diff
path: root/Makefile
blob: 31a77ed88b20e03dd183b41d94eb1f48d338b217 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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