Fix git overriding local configuration
This commit is contained in:
parent
b1efee1649
commit
37368c6300
20
Makefile
20
Makefile
@ -1,7 +1,23 @@
|
||||
FILES = .bash_aliases .bashrc .inputrc .profile .vimrc .xsessionrc
|
||||
CONFIGS = .config/mimeapps.list .config/picom.conf .config/redshift.conf .config/user-dirs.dirs
|
||||
|
||||
install:
|
||||
install: install_config
|
||||
cp -v $(FILES) $(HOME)
|
||||
cp -rv bin/* $(HOME)/bin
|
||||
cp -rv .local $(HOME)
|
||||
cp -rv .config $(HOME)
|
||||
|
||||
install_config: install_config_git install_config_polybar install_config_other
|
||||
|
||||
install_config_git:
|
||||
ifneq ("$(wildcard $(HOME)/.config/git/config)","")
|
||||
@echo "Git config found, skipping install"
|
||||
else
|
||||
mkdir -p $(HOME)/.config/git
|
||||
cp .config/git/config $(HOME)/.config/git
|
||||
endif
|
||||
|
||||
install_config_polybar:
|
||||
cp -rv .config/polybar $(HOME)/.config
|
||||
|
||||
install_config_other:
|
||||
cp -rv $(CONFIGS) $(HOME)/.config
|
||||
|
Loading…
Reference in New Issue
Block a user