parent
caea8cab11
commit
a2cc7a788a
@ -1,21 +1,27 @@
|
|||||||
TOP_SOURCES := $(shell git ls-files | grep -vE 'README|Makefile|^config|^\.git|^\.travis' | grep -v /)
|
TOP_SOURCES := $(shell git ls-files | grep -vE 'README|Makefile|^config|^\.git|^\.travis' | grep -v /)
|
||||||
CONFIG_SOURCES := $(shell git ls-files config)
|
CONFIG_SOURCES := $(shell git ls-files config)
|
||||||
|
LOCAL_BIN_SOURCES := $(shell git ls-files local/bin)
|
||||||
TARGETS := \
|
TARGETS := \
|
||||||
$(patsubst %,$(HOME)/.%,$(TOP_SOURCES)) \
|
$(patsubst %,$(HOME)/.%,$(TOP_SOURCES)) \
|
||||||
$(patsubst %,$(HOME)/.%,$(CONFIG_SOURCES)) \
|
$(patsubst %,$(HOME)/.%,$(CONFIG_SOURCES)) \
|
||||||
|
$(patsubst %,$(HOME)/.%,$(LOCAL_BIN_SOURCES)) \
|
||||||
$(HOME)/.config/i3/config
|
$(HOME)/.config/i3/config
|
||||||
|
|
||||||
$(HOME)/.%: %
|
$(HOME)/.%: %
|
||||||
$(RM) '$@' && mkdir -p $(dir $@) && ln -svf '$(PWD)/$^' '$@'
|
$(RM) '$@' && mkdir -p $(dir $@) && ln -svf '$(PWD)/$^' '$@'
|
||||||
|
|
||||||
.PHONY: all
|
.PHONY: all
|
||||||
all: $(HOME)/.config $(TARGETS)
|
all: $(HOME)/.config $(HOME)/.local/bin $(TARGETS)
|
||||||
|
|
||||||
$(HOME)/.config:
|
$(HOME)/.config:
|
||||||
mkdir -p $@
|
mkdir -p $@
|
||||||
|
|
||||||
|
$(HOME)/.local/bin:
|
||||||
|
mkdir -p $@
|
||||||
|
|
||||||
.PHONY: echo
|
.PHONY: echo
|
||||||
echo:
|
echo:
|
||||||
@echo TOP_SOURCES=$(TOP_SOURCES)
|
@echo TOP_SOURCES=$(TOP_SOURCES)
|
||||||
@echo CONFIG_SOURCES=$(CONFIG_SOURCES)
|
@echo CONFIG_SOURCES=$(CONFIG_SOURCES)
|
||||||
|
@echo LOCAL_BIN_SOURCES=$(LOCAL_BIN_SOURCES)
|
||||||
@echo TARGETS=$(TARGETS)
|
@echo TARGETS=$(TARGETS)
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
[Service]
|
[Service]
|
||||||
ExecStart=
|
ExecStart=
|
||||||
ExecStart=/home/me/.redshift-gtk-wrapper
|
ExecStart=/home/me/.local/bin/redshift-gtk-wrapper
|
||||||
SyslogIdentifier=
|
SyslogIdentifier=
|
||||||
SyslogIdentifier=redshift-gtk
|
SyslogIdentifier=redshift-gtk
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
[Service]
|
[Service]
|
||||||
ExecStart=
|
ExecStart=
|
||||||
ExecStart=/home/me/.redshift-wrapper
|
ExecStart=/home/me/.local/bin/redshift-wrapper
|
||||||
SyslogIdentifier=
|
SyslogIdentifier=
|
||||||
SyslogIdentifier=redshift
|
SyslogIdentifier=redshift
|
||||||
|
Loading…
Reference in new issue