blob: 972d92f6a957a8048297f35e638beb25da2b4b5b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
INSTALL := \
.config/alacritty/alacritty.yml \
.config/darksky/api \
.config/i3/browser-workspace.json \
.config/i3/config \
.config/i3/signal-workspace.json \
.config/i3/terminal-workspace.json \
.config/i3status/config \
.config/msmtp/config \
.config/offlineimap/config \
.config/offlineimap/pass.py \
.config/perspektiv/config.toml \
.config/touchegg/touchegg.conf \
.gnupg/gpg.conf \
.gnupg/gpg-agent.conf \
.notmuch-config \
.xbindkeysrc \
.Xdefaults \
.xinitrc \
.xprofile \
.Xmodmap \
.mpdscribble \
$(patsubst %,.%,$(wildcard services/available/*/run)) \
$(patsubst %,.%,$(wildcard services/available/*/log/run))
EMPTYDIRS := \
$(patsubst services/available/%,.log/%,$(wildcard services/available/*)) \
Maildir \
.cache/mpd \
.config/mpd/playlists
INSTALL_CUSTOM := \
$(patsubst services/available/%,$(INTO)/.services/enabled/%,$(wildcard services/available/*)) \
/var/spool/cron/$(USER) \
$(INTO)/Maildir/.notmuch/hooks/post-new
BUILD := \
config/alacritty/alacritty.yml \
mpdscribble/mpdscribble.conf
install ::
@chmod 600 config/msmtp/config
clean ::
@crontab -r
/var/spool/cron/$(USER) : crontab
@crontab $<
$(INTO)/Maildir/.notmuch/hooks/post-new: notmuch/hooks/post-new
@[ ! -e $@ ] || [ -h $@ ] || mv -f $@ $@.bak
$(MKDIR) $(INTO)/Maildir/.notmuch/hooks
$(LN) $(PWD)/$< $@
$(INTO)/.services/enabled/% : services/available/%
$(MKDIR) $(dir $<)
$(LN) ../available/$(notdir $<) $@
config/alacritty/alacritty.yml : config/alacritty/alacritty.yml.hush
$(LN) $(notdir $<) $@
config/darksky/api :
pass show websites/darksky.net/api > $@
mpdscribble/mpdscribble.conf : mpdscribble/mpdscribble.conf.tmpl
pass="$$(pass show websites/last.fm/doyster)" &&\
perl -E'while (<STDIN>) { if (/^password =/) { say "password = $$ARGV[0]" } else { print } }' "$$pass" < $< > $@
|