aboutsummaryrefslogtreecommitdiffstats
path: root/gcc/Makefile
blob: f1144030b54bdcc66ddb0799cbc4b908ed02dfc9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
.POSIX:
include ../common.mk

install:
	mkdir -p -- ~/.config/profile.d
	test ! -d ~/.config/profile.d/gcc
	ln -sf -- ~/.dotfiles/gcc/user-profile ~/.config/profile.d/gcc
	mkdir -p -- ~/.local/bin
	ln -sf -- ~/.dotfiles/gcc/gcc-extreme ~/.local/bin/
	ln -sf -- ~/.dotfiles/gcc/gcc-extreme-not-pedantic ~/.local/bin/
	ln -sf -- ~/.dotfiles/gcc/gcc-less-extreme ~/.local/bin/
	ln -sf -- ~/.dotfiles/gcc/gcc-less-extreme-not-pedantic ~/.local/bin/

uninstall:
	-unlink -- ~/.config/profile.d/gcc
	-rmdir -- ~/.config/profile.d
	-unlink -- ~/.local/bin/
	-unlink -- ~/.local/bin/
	-unlink -- ~/.local/bin/
	-unlink -- ~/.local/bin/

.PHONY: install uninstall