25 lines
474 B
Makefile
25 lines
474 B
Makefile
SRC := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
|
|
|
|
include ../lib/shared.mk
|
|
TARGET := $(XDG_DIR)/waybar
|
|
|
|
install: | init update
|
|
|
|
init:
|
|
ifeq ($(call cmd_exist,waybar), true)
|
|
$(info => Setting up waybar)
|
|
$(mk_link) $(SRC) $(TARGET)
|
|
endif
|
|
|
|
update:
|
|
ifeq ($(call cmd_exist,swaymsg), true)
|
|
$(info => Reloading sway)
|
|
swaymsg reload ; $(report) "sway reload"
|
|
endif
|
|
|
|
remove:
|
|
$(info => Removing waybar)
|
|
@ $(rm_link) $(TARGET)
|
|
|
|
.PHONY: install update init remove
|