1
0
mirror of https://github.com/Dejvino/pinephone-sway-poc.git synced 2024-11-14 02:47:28 +00:00
pinephone-sway-poc/Makefile

61 lines
1.5 KiB
Makefile
Raw Normal View History

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
###
2020-05-26 21:40:28 +00:00
install_user: install_user_sway install_user_waybar install_user_htop
install_user_sway:
2020-05-26 21:40:28 +00:00
mkdir -p $(HOME_PATH)/.config/sway/
cp home/config/sway/* $(HOME_PATH)/.config/sway/config
install_user_waybar:
2020-05-26 21:40:28 +00:00
mkdir -p $(HOME_PATH)/.config/waybar/
cp home/config/waybar/* $(HOME_PATH)/.config/waybar/
2020-05-26 21:40:28 +00:00
install_user_htop:
mkdir -p $(HOME_PATH)/.config/htop/
cp home/config/htop/* $(HOME_PATH)/.config/htop/
###
# INSTALL - SYSTEM
###
install_system: install_system_check install_system_lightdm install_system_bin
install_system_check:
@echo "Note: install needs to be run as root."
install_system_lightdm:
cp usr/share/wayland-sessions/* /usr/share/wayland-sessions/
install_system_bin:
chmod go+rx usr/local/bin/*
cp usr/local/bin/* /usr/local/bin/
###
# FETCH
###
2020-05-26 21:40:28 +00:00
fetch: fetch_sway fetch_waybar fetch_htop 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/
2020-05-26 21:40:28 +00:00
fetch_htop:
cp $(HOME_PATH)/.config/htop/htoprc home/config/htop/
fetch_lightdm:
cp /usr/share/wayland-sessions/sway.desktop usr/share/wayland-sessions/