1 MAKEFLAGS
:= --no-builtin-rules
3 DEPS
:= $(wildcard deps
/*)
13 pkgs_brew_cask_install \
24 @echo
'================================================================================'
25 @echo
'| Default target disabled. Specify a concrete one.'
26 @echo
'================================================================================'
29 home
: mpdconf compiled
31 @cp
-Rp home
/bin
$(HOME
)/
32 @cp
-Rp home
/lib
$(HOME
)/
33 @cp home
/.compton.conf
$(HOME
)/
34 @cp
-Rp home
/.config
/ $(HOME
)/
35 @cp
-Rp home
/.newsboat
/ $(HOME
)/
36 @cp home
/.profile
$(HOME
)/
37 @cp home
/.fonts.conf
$(HOME
)/
38 @cp home
/.Rprofile
$(HOME
)/
39 @cp home
/.tmux.conf
$(HOME
)/
40 @cp home
/.xbindkeysrc
$(HOME
)/
43 @mkdir
-p ~
/Archives
/Audio
44 @mkdir
-p ~
/var
/lib
/mpd
/playlists
45 @mkdir
-p ~
/var
/log
/mpd
46 @mkdir
-p ~
/var
/run
/mpd
47 @cp home
/.mpdconf
$(HOME
)/
60 pkgs_golang
: list pkgs-golang.list
61 go
get $(shell .
/list pkgs-golang.list
)
66 pkgs_ubuntu
: list pkgs-ubuntu.list
67 sudo apt
install $(shell .
/list pkgs-ubuntu.list
)
69 pkgs_ubuntu_debfiles
: list pkgs-ubuntu-debfiles.list
70 .
/install-debfiles pkgs-ubuntu-debfiles.list
76 sudo pip3
install $(shell .
/list pkgs-pip.list
)
83 $(MAKE
) pkgs_brew_install
84 $(MAKE
) pkgs_brew_cask_install
86 # TODO: Test pkgs_brew_tap when list contains multiple items
87 pkgs_brew_tap
: list pkgs-brew-tap.list
88 brew tap
$(shell .
/list pkgs-brew-tap.list
)
90 pkgs_brew_install
: list pkgs-brew-install.list
91 brew
install $(shell .
/list pkgs-brew-install.list
)
93 pkgs_brew_cask_install
: list pkgs-brew-cask-install.list
94 brew cask
install $(shell .
/list pkgs-brew-cask-install.list
)
99 pkgs_deb_install
: list pkgs-deb-install.list
100 sudo apt
install $(shell .
/list pkgs-deb-install.list
)
102 pkgs_deb_purge
: list pkgs-deb-purge.list
103 sudo apt purge
$(shell .
/list pkgs-deb-purge.list
)
108 pkgs_snap_classic
: list pkgs-snap-classic.list
109 @
$(MAKE
) $(foreach p
,$(shell .
/list pkgs-snap-classic.list
),pkg_snap_classic_
$(p
))
111 pkgs_snap_strict
: list pkgs-snap-strict.list
112 @
$(MAKE
) $(foreach p
,$(shell .
/list pkgs-snap-strict.list
),pkg_snap_strict_
$(p
))
114 # 'snap' command comes from 'snapd' deb pkg
116 sudo snap
install --classic
$*
127 $(foreach d
,$(DEPS
),$(eval
$(call GEN_DEP_RULE
,$(d
))))
130 find home
-type f
-print0 \
131 | sed
-z
's/^home\///g' \
132 | xargs
-0 -I
% sh
-c
'echo %; diff --color=always ~/% home/%'