blob: adaa39762d8876416dfb1ba854cff98ba37e29b2 (
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
|
INSTALL := \
.config/alacritty/alacritty.yml \
.config/touchegg/touchegg.conf \
.i3status.conf \
.notmuch-config \
.offlineimaprc \
.wunderground \
.xbindkeysrc \
.Xdefaults \
.xinitrc \
.xprofile \
.Xmodmap \
.i3 \
.mpdscribble \
.offlineimap \
.services
EMPTYDIRS := \
$(patsubst services/available/%,.log/%,$(wildcard services/available/*)) \
Maildir \
.cache/mpd \
.config/mpd/playlists
INSTALLED := \
/var/spool/cron/$(USER) \
$(INTO)/Maildir/.notmuch
BUILD := \
$(patsubst services/available/%,services/enabled/%,$(wildcard services/available/*)) \
wunderground \
mpdscribble/mpdscribble.conf \
bin/local/timettyrec
clean ::
@crontab -r
/var/spool/cron/$(USER) : crontab
@crontab $<
$(INTO)/Maildir/.notmuch: notmuch
@[ ! -e $@ ] || [ -h $@ ] || mv -f $@ $@.bak
$(MKDIR) $(INTO)/Maildir
$(LN) $(PWD)/$< $@
services/enabled/% : services/available/%
$(MKDIR) services/enabled
$(LN) ../available/$(notdir $<) $@
wunderground :
pass show websites/wunderground.com/wunderground@tozt.net > $@
mpdscribble/mpdscribble.conf : mpdscribble/mpdscribble.conf.tmpl
perl -E'while (<STDIN>) { if (/^password =/) { say "password = $$ARGV[0]" } else { print } }' "$$(pass show websites/last.fm/doyster)" < $< > $@
|