mirror of
				https://github.com/Dejvino/pinephone-sway-poc.git
				synced 2025-10-30 18:15:20 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			57 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			Makefile
		
	
	
	
	
	
			
		
		
	
	
			57 lines
		
	
	
		
			1.4 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_htop
 | |
| 
 | |
| install_user_sway:
 | |
| 	mkdir -p $(HOME_PATH)/.config/sway/
 | |
| 	cp home/config/sway/* $(HOME_PATH)/.config/sway/config
 | |
| 
 | |
| install_user_waybar:
 | |
| 	mkdir -p $(HOME_PATH)/.config/waybar/
 | |
| 	cp home/config/waybar/* $(HOME_PATH)/.config/waybar/
 | |
| 
 | |
| 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_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_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/
 | |
| 
 | |
| fetch_htop:
 | |
| 	cp $(HOME_PATH)/.config/htop/htoprc home/config/htop/
 | |
| 
 | |
| fetch_lightdm:
 | |
| 	cp /usr/share/wayland-sessions/sway.desktop usr/share/wayland-sessions/
 | |
| 
 |