mirror of
https://github.com/Dejvino/pinephone-sway-poc.git
synced 2024-12-22 02:28:49 +00:00
48 lines
1.1 KiB
Makefile
48 lines
1.1 KiB
Makefile
|
HOME_PATH=~
|
||
|
BIN_PATH=/usr/local/bin
|
||
|
|
||
|
help:
|
||
|
@echo " Available Actions:"
|
||
|
@echo " install_user - builds & copies files into the user's home"
|
||
|
@echo " install_system - builds & copies files into the system"
|
||
|
@echo " fetch - copies files from the system into this build directory"
|
||
|
@echo " help - this!"
|
||
|
|
||
|
###
|
||
|
# INSTALL - USER
|
||
|
###
|
||
|
install_user: install_user_sway install_user_waybar
|
||
|
|
||
|
install_user_sway:
|
||
|
cp home/config/sway/* $(HOME_PATH)/.config/sway/config
|
||
|
|
||
|
install_user_waybar:
|
||
|
cp home/config/waybar/* $(HOME_PATH)/.config/waybar/
|
||
|
|
||
|
###
|
||
|
# INSTALL - SYSTEM
|
||
|
###
|
||
|
install_system: install_system_check install_system_lightdm
|
||
|
|
||
|
install_system_check:
|
||
|
@echo "Note: install needs to be run as root."
|
||
|
|
||
|
install_system_lightdm:
|
||
|
cp usr/share/wayland-sessions/* /usr/share/wayland-sessions/
|
||
|
|
||
|
###
|
||
|
# FETCH
|
||
|
###
|
||
|
fetch: fetch_sway fetch_waybar fetch_lightdm
|
||
|
|
||
|
fetch_sway:
|
||
|
cp $(HOME_PATH)/.config/sway/config home/config/sway/config
|
||
|
|
||
|
fetch_waybar:
|
||
|
cp $(HOME_PATH)/.config/waybar/config* home/config/waybar/
|
||
|
cp $(HOME_PATH)/.config/waybar/style.css home/config/waybar/
|
||
|
|
||
|
fetch_lightdm:
|
||
|
cp /usr/share/wayland-sessions/sway.desktop usr/share/wayland-sessions/
|
||
|
|