2024-07-06 18:31:50 +00:00
|
|
|
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: deploy
|
|
|
|
deploy: build
|
|
|
|
@echo Backing old config up
|
|
|
|
rm -f backup.tar
|
|
|
|
tar -cvf backup.tar -C ~/.config awesome
|
|
|
|
rsync -avmh --delete --exclude 'settings.lua' --include '*.lua' --include '*.so' --include '*.png' --include '*/' --exclude '*' ./ ~/.config/awesome/
|
|
|
|
|
|
|
|
.PHONY: build
|
|
|
|
build:
|
2024-07-07 22:06:34 +00:00
|
|
|
cmake -S . -B build -G Ninja
|
2024-07-06 18:31:50 +00:00
|
|
|
cmake --build build
|
|
|
|
|
2024-07-07 22:06:34 +00:00
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
|
|
|
rm -vfr build
|
|
|
|
|
2024-07-06 18:31:50 +00:00
|
|
|
.PHONY: luacheck
|
|
|
|
luacheck:
|
|
|
|
luacheck $(LUA_FILES)
|