-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (27 loc) · 774 Bytes
/
Makefile
File metadata and controls
32 lines (27 loc) · 774 Bytes
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
# This file is converted form justfile by AI. I don't know to to create Makefile
# Default target
.PHONY: default
default: install
# Variable
VIM_PLUG_URL = https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
# Install target
.PHONY: install
install:
curl -C - -fLo ./autoload/plug.vim --create-dirs $(VIM_PLUG_URL)
$(MAKE) copy-config
# Copy config based on OS
.PHONY: copy-config
copy-config:
ifeq ($(OS),Windows_NT)
IF NOT EXIST "$(USERPROFILE)\.ideavimrc" ( ^
mklink "$(USERPROFILE)\.ideavimrc" "%CD%\ideavimrc" ^
)
else
if [ ! -f $$HOME/.ideavimrc ]; then \
ln -s "$(CURDIR)/ideavimrc" $$HOME/.ideavimrc; \
fi
endif
# Update vim-plug
.PHONY: update-vim-plug
update-vim-plug:
curl -fLo ./autoload/plug.vim --create-dirs $(VIM_PLUG_URL)