2019-11-25 14:59:24 +00:00
|
|
|
include *.mk
|
|
|
|
|
2019-07-11 21:43:42 +00:00
|
|
|
CONFIG=config
|
|
|
|
CONFIG_OUT=$(HOME)/.config/i3blocks/config
|
|
|
|
CONFIG_DIR=$(HOME)/.config/i3blocks
|
|
|
|
BLOCKS := $(wildcard blocks/*)
|
|
|
|
|
|
|
|
OUT=$(I3_CONFIG_OUT)
|
|
|
|
|
|
|
|
.PHONY: clean_install
|
|
|
|
|
|
|
|
clean_install: clean install
|
|
|
|
|
2019-11-25 14:59:24 +00:00
|
|
|
clean: clean_gsimplecal
|
2019-07-11 21:43:42 +00:00
|
|
|
rm -rf $(CONFIG_OUT)
|
|
|
|
rm -rf $(CONFIG_DIR)
|
|
|
|
|
2019-11-25 14:59:24 +00:00
|
|
|
install: $(CONFIG_DIR) install_gsimplecal
|
2019-07-11 21:43:42 +00:00
|
|
|
cp $(CONFIG) $(CONFIG_OUT)
|
|
|
|
cp $(BLOCKS) $(CONFIG_DIR)
|
|
|
|
|
|
|
|
$(CONFIG_DIR):
|
|
|
|
mkdir -p $(CONFIG_DIR)
|