33 lines
		
	
	
		
			903 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
			
		
		
	
	
			33 lines
		
	
	
		
			903 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
LUA_FILES = $(shell find src -type f -name '*.lua') rc.lua settings.lua
 | 
						|
 | 
						|
.PHONY: test
 | 
						|
test: build
 | 
						|
	{ sleep 1; DISPLAY=:10 awesome -c "$(CURDIR)/rc.lua"; } & Xephyr :10 -name xephyr_awesome -ac -br -noreset -screen "1920x1080"
 | 
						|
 | 
						|
.PHONY: testv
 | 
						|
testv: build
 | 
						|
	{ sleep 1; DISPLAY=:10 awesome -c "$(CURDIR)/rc.lua"; } & \
 | 
						|
	{ sleep 2; DISPLAY=:10 st & DISPLAY=:10 st & DISPLAY=:10 st & DISPLAY=:10 st & DISPLAY=:10 st; } & \
 | 
						|
	Xephyr :10 -name xephyr_awesome -ac -br -noreset -screen "1080x1920"
 | 
						|
 | 
						|
.PHONY: deploy
 | 
						|
deploy: build
 | 
						|
	rsync -avmh --delete \
 | 
						|
		--exclude 'settings.lua' --exclude 'autostart' \
 | 
						|
		--include '*.lua' --include '*.so' --include '*.png' --include '*/' --include '*.rasi' --include '*.sh' \
 | 
						|
		--exclude '*' \
 | 
						|
		./ ~/.config/awesome/
 | 
						|
 | 
						|
.PHONY: build
 | 
						|
build:
 | 
						|
	cmake -S . -B build -G Ninja
 | 
						|
	cmake --build build
 | 
						|
 | 
						|
.PHONY: clean
 | 
						|
clean:
 | 
						|
	rm -vfr build
 | 
						|
 | 
						|
.PHONY: luacheck
 | 
						|
luacheck:
 | 
						|
	luacheck $(LUA_FILES)
 |