1 MAKEFLAGS
:= --no-builtin-rules
3 DEPS
:= $(wildcard deps
/*)
12 pkgs_brew_cask_install \
23 @echo
'================================================================================'
24 @echo
'| Default target disabled. Specify a concrete one.'
25 @echo
'================================================================================'
28 home
: mpdconf compiled
30 @cp
-Rp home
/bin
$(HOME
)/
31 @cp
-Rp home
/lib
$(HOME
)/
32 @cp home
/.compton.conf
$(HOME
)/
33 @cp
-Rp home
/.config
/ $(HOME
)/
34 @cp
-Rp home
/.newsboat
/ $(HOME
)/
35 @cp home
/.profile
$(HOME
)/
36 @cp home
/.fonts.conf
$(HOME
)/
37 @cp home
/.Rprofile
$(HOME
)/
38 @cp home
/.tmux.conf
$(HOME
)/
39 @cp home
/.xbindkeysrc
$(HOME
)/
42 @mkdir
-p ~
/Archives
/Audio
43 @mkdir
-p ~
/var
/lib
/mpd
/playlists
44 @mkdir
-p ~
/var
/log
/mpd
45 @mkdir
-p ~
/var
/run
/mpd
46 @cp home
/.mpdconf
$(HOME
)/
59 pkgs_golang
: list pkgs-golang.list
60 go
get $(shell .
/list pkgs-golang.list
)
65 pkgs_ubuntu
: list pkgs-ubuntu.list
66 sudo apt
install $(shell .
/list pkgs-ubuntu.list
)
68 pkgs_ubuntu_debfiles
: list pkgs-ubuntu-debfiles.list
69 .
/install-debfiles pkgs-ubuntu-debfiles.list
75 sudo pip3
install $(shell .
/list pkgs-pip.list
)
82 $(MAKE
) pkgs_brew_install
83 $(MAKE
) pkgs_brew_cask_install
85 # TODO: Test pkgs_brew_tap when list contains multiple items
86 pkgs_brew_tap
: list pkgs-brew-tap.list
87 brew tap
$(shell .
/list pkgs-brew-tap.list
)
89 pkgs_brew_install
: list pkgs-brew-install.list
90 brew
install $(shell .
/list pkgs-brew-install.list
)
92 pkgs_brew_cask_install
: list pkgs-brew-cask-install.list
93 brew cask
install $(shell .
/list pkgs-brew-cask-install.list
)
98 pkgs_deb_install
: list pkgs-deb-install.list
99 sudo apt
install $(shell .
/list pkgs-deb-install.list
)
101 pkgs_deb_purge
: list pkgs-deb-purge.list
102 sudo apt purge
$(shell .
/list pkgs-deb-purge.list
)
107 pkgs_snap_classic
: list pkgs-snap-classic.list
108 @
$(MAKE
) $(foreach p
,$(shell .
/list pkgs-snap-classic.list
),pkg_snap_classic_
$(p
))
110 pkgs_snap_strict
: list pkgs-snap-strict.list
111 @
$(MAKE
) $(foreach p
,$(shell .
/list pkgs-snap-strict.list
),pkg_snap_strict_
$(p
))
113 # 'snap' command comes from 'snapd' deb pkg
115 sudo snap
install --classic
$*
126 $(foreach d
,$(DEPS
),$(eval
$(call GEN_DEP_RULE
,$(d
))))
129 find home
-type f
-print0 \
130 | sed
-z
's/^home\///g' \
131 | xargs
-0 -I
% sh
-c
'echo %; diff --color=always ~/% home/%'