parent
caea8cab11
commit
a2cc7a788a
@ -1,21 +1,27 @@
|
||||
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)
|
||||
TARGETS := \
|
||||
$(patsubst %,$(HOME)/.%,$(TOP_SOURCES)) \
|
||||
$(patsubst %,$(HOME)/.%,$(CONFIG_SOURCES)) \
|
||||
$(patsubst %,$(HOME)/.%,$(LOCAL_BIN_SOURCES)) \
|
||||
$(HOME)/.config/i3/config
|
||||
|
||||
$(HOME)/.%: %
|
||||
$(RM) '$@' && mkdir -p $(dir $@) && ln -svf '$(PWD)/$^' '$@'
|
||||
|
||||
.PHONY: all
|
||||
all: $(HOME)/.config $(TARGETS)
|
||||
all: $(HOME)/.config $(HOME)/.local/bin $(TARGETS)
|
||||
|
||||
$(HOME)/.config:
|
||||
mkdir -p $@
|
||||
|
||||
$(HOME)/.local/bin:
|
||||
mkdir -p $@
|
||||
|
||||
.PHONY: echo
|
||||
echo:
|
||||
@echo TOP_SOURCES=$(TOP_SOURCES)
|
||||
@echo CONFIG_SOURCES=$(CONFIG_SOURCES)
|
||||
@echo LOCAL_BIN_SOURCES=$(LOCAL_BIN_SOURCES)
|
||||
@echo TARGETS=$(TARGETS)
|
||||
|
@ -1,5 +1,5 @@
|
||||
[Service]
|
||||
ExecStart=
|
||||
ExecStart=/home/me/.redshift-gtk-wrapper
|
||||
ExecStart=/home/me/.local/bin/redshift-gtk-wrapper
|
||||
SyslogIdentifier=
|
||||
SyslogIdentifier=redshift-gtk
|
||||
|
@ -1,5 +1,5 @@
|
||||
[Service]
|
||||
ExecStart=
|
||||
ExecStart=/home/me/.redshift-wrapper
|
||||
ExecStart=/home/me/.local/bin/redshift-wrapper
|
||||
SyslogIdentifier=
|
||||
SyslogIdentifier=redshift
|
||||
|
Loading…
Reference in new issue