|
|
|
@ -3,10 +3,12 @@ SUDO ?= sudo
|
|
|
|
|
TOP_SOURCES := $(shell git ls-files | grep -vE 'README|Makefile|^config|^\.git|^\.travis' | grep -v /)
|
|
|
|
|
CONFIG_SOURCES := $(shell git ls-files config)
|
|
|
|
|
LOCAL_BIN_SOURCES := $(shell git ls-files local/bin)
|
|
|
|
|
LOCAL_BG_SOURCES := $(shell git ls-files local/share/backgrounds)
|
|
|
|
|
TARGETS := \
|
|
|
|
|
$(patsubst %,$(HOME)/.%,$(TOP_SOURCES)) \
|
|
|
|
|
$(patsubst %,$(HOME)/.%,$(CONFIG_SOURCES)) \
|
|
|
|
|
$(patsubst %,$(HOME)/.%,$(LOCAL_BIN_SOURCES)) \
|
|
|
|
|
$(patsubst %,$(HOME)/.%,$(LOCAL_BG_SOURCES)) \
|
|
|
|
|
$(HOME)/.config/i3/config \
|
|
|
|
|
/etc/udev/rules.d/90-trackman-marble.rules \
|
|
|
|
|
/usr/local/bin/handle-trackman-marble
|
|
|
|
@ -15,7 +17,7 @@ $(HOME)/.%: %
|
|
|
|
|
$(RM) '$@' && mkdir -p $(dir $@) && ln -svf '$(PWD)/$^' '$@'
|
|
|
|
|
|
|
|
|
|
.PHONY: all
|
|
|
|
|
all: $(HOME)/.config $(HOME)/.local/bin $(TARGETS)
|
|
|
|
|
all: $(HOME)/.config $(HOME)/.local/bin $(HOME)/.local/share/backgrounds $(TARGETS)
|
|
|
|
|
|
|
|
|
|
$(HOME)/.config:
|
|
|
|
|
mkdir -p $@
|
|
|
|
@ -23,6 +25,9 @@ $(HOME)/.config:
|
|
|
|
|
$(HOME)/.local/bin:
|
|
|
|
|
mkdir -p $@
|
|
|
|
|
|
|
|
|
|
$(HOME)/.local/share/backgrounds:
|
|
|
|
|
mkdir -p $@
|
|
|
|
|
|
|
|
|
|
/etc/udev/rules.d/90-trackman-marble.rules: udev/rules.d/90-trackman-marble.rules
|
|
|
|
|
$(SUDO) install -m 0644 -v udev/rules.d/90-trackman-marble.rules $@
|
|
|
|
|
|
|
|
|
|