-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
58 lines (45 loc) · 1.23 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
ifeq ($(OS), Windows_NT)
DETECTED_OS := Windows
else
DETECTED_OS := $(shell uname)
endif
ifeq ($(DETECTED_OS), Linux)
.PHONY: install-configs-user
install-configs-user:
dotbot -d . -c dotbot/common.conf.yaml
dotbot -d . -c dotbot/linux.conf.yaml
.PHONY: install-configs-system
install-configs-system:
cd system/linux && ./install
.PHONY: dump-packages
dump-packages:
./pkgs/linux/dump
.PHONY: bootstrap
bootstrap:
sudo pacman -S --needed base base-devel
./bootstrap/linux/paru
./bootstrap/linux/pkgs
git submodule update --recursive --init
sudo make install-configs-system
make install-configs-user
./bootstrap/common/nvim
endif
ifeq ($(DETECTED_OS), Darwin)
.PHONY: install-configs-user
install-configs-user:
eval "$(/opt/homebrew/bin/brew shellenv)" && dotbot -d . -c dotbot/common.conf.yaml
eval "$(/opt/homebrew/bin/brew shellenv)" && dotbot -d . -c dotbot/darwin.conf.yaml
TMP_FILE:=$(shell mktemp)
.PHONY: dump-packages
dump-packages:
./pkgs/darwin/dump
.PHONY: bootstrap
bootstrap:
./bootstrap/darwin/shell
./bootstrap/darwin/homebrew
./bootstrap/darwin/pkgs
git submodule update --recursive --init
PATH=/opt/homebrew/bin:$$PATH make install-configs-user
./bootstrap/common/nvim
endif
include .mkincl/init.mk