1 MAKEFLAGS
:= --no-builtin-rules
3 DEPS
:= $(wildcard deps
/*)
14 pkgs_brew_cask_install \
25 @echo
'================================================================================'
26 @echo
'| Default target disabled. Specify a concrete one.'
27 @echo
'================================================================================'
30 home
: mpdconf compiled
32 @cp
-Rp home
/bin
$(HOME
)/
33 @cp
-Rp home
/lib
$(HOME
)/
34 @cp home
/.compton.conf
$(HOME
)/
35 @cp
-Rp home
/.config
/ $(HOME
)/
36 @cp
-Rp home
/.newsboat
/ $(HOME
)/
37 @cp home
/.profile
$(HOME
)/
38 @cp home
/.fonts.conf
$(HOME
)/
39 @cp home
/.Rprofile
$(HOME
)/
40 @cp home
/.tmux.conf
$(HOME
)/
41 @cp home
/.xbindkeysrc
$(HOME
)/
44 @mkdir
-p ~
/Archives
/Audio
45 @mkdir
-p ~
/var
/lib
/mpd
/playlists
46 @mkdir
-p ~
/var
/log
/mpd
47 @mkdir
-p ~
/var
/run
/mpd
48 @cp home
/.mpdconf
$(HOME
)/
61 pkgs_golang
: list pkgs-golang.list
62 go
get $(shell .
/list pkgs-golang.list
)
67 pkgs_ubuntu
: list pkgs-ubuntu.list
68 sudo apt
install $(shell .
/list pkgs-ubuntu.list
)
70 pkgs_ubuntu_debfiles
: list pkgs-ubuntu-debfiles.list
71 .
/install-debfiles pkgs-ubuntu-debfiles.list
77 sudo pip3
install $(shell .
/list pkgs-pip.list
)
84 $(MAKE
) pkgs_brew_install
85 $(MAKE
) pkgs_brew_cask_install
87 # TODO: Test pkgs_brew_tap when list contains multiple items
88 pkgs_brew_tap
: list pkgs-brew-tap.list
89 brew tap
$(shell .
/list pkgs-brew-tap.list
)
91 pkgs_brew_install
: list pkgs-brew-install.list
92 brew
install $(shell .
/list pkgs-brew-install.list
)
94 pkgs_brew_cask_install
: list pkgs-brew-cask-install.list
95 brew cask
install $(shell .
/list pkgs-brew-cask-install.list
)
100 pkgs_deb_install
: list pkgs-deb-install.list
101 sudo apt
install $(shell .
/list pkgs-deb-install.list
)
103 pkgs_deb_purge
: list pkgs-deb-purge.list
104 sudo apt purge
$(shell .
/list pkgs-deb-purge.list
)
109 pkgs_snap_classic
: list pkgs-snap-classic.list
110 @
$(MAKE
) $(foreach p
,$(shell .
/list pkgs-snap-classic.list
),pkg_snap_classic_
$(p
))
112 pkgs_snap_strict
: list pkgs-snap-strict.list
113 @
$(MAKE
) $(foreach p
,$(shell .
/list pkgs-snap-strict.list
),pkg_snap_strict_
$(p
))
115 # 'snap' command comes from 'snapd' deb pkg
117 sudo snap
install --classic
$*
128 $(foreach d
,$(DEPS
),$(eval
$(call GEN_DEP_RULE
,$(d
))))
131 find home
-type f
-print0 \
132 | sed
-z
's/^home\///g' \
133 | xargs
-0 -I
% sh
-c
'echo %; diff --color=always ~/% home/%'
136 find home
-type f
-print0 \
137 | sed
-z
's/^home\///g' \
138 | xargs
-0 -I
% sh
-c
'diff -q ~/% home/% > /dev/null || cp ~/% home/%'