Create symlink in a one step.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Fri, 08 Jan 2021 13:59:23 +0200
changeset 968 dc543d247f29
parent 967 186bfef3c7d1
child 969 cd71f361ae59
Create symlink in a one step.
Makefile
--- a/Makefile	Fri Jan 08 13:57:12 2021 +0200
+++ b/Makefile	Fri Jan 08 13:59:23 2021 +0200
@@ -149,10 +149,8 @@
 		fi
 	done
 	chmod a+x ~/.xinitrc ~/.xserverrc
-	rm -f ~/.xsession
-	ln -s ~/.xinitrc ~/.xsession
-	rm -f ~/.bash_profile
-	cp ~/.bashrc ~/.bash_profile
+	ln -s -f ~/.xinitrc ~/.xsession
+	ln -s -f $(HOME)/.bashrc $(HOME)/.bash_profile
 	mkdir -p $(HOME)/.config/mc $(HOME)/.local/share/mc/
 	umask 0117
 	$(INSTALL_DATA) .local/share/mc/bashrc $(HOME)/.local/share/mc/