pkgs:
$(MAKE) pkgs_install
$(MAKE) pkgs_purge
+ $(MAKE) pkgs_snap_classic
pkgs_install: list pkgs-install
sudo apt install $(shell ./list pkgs-install)
pkgs_purge: list pkgs-purge
sudo apt purge $(shell ./list pkgs-purge)
+pkgs_snap_classic: list pkgs-snap-classic
+ @$(MAKE) $(foreach p,$(shell ./list pkgs-snap-classic),pkg_snap_classic_$(p))
+
+# Depends on 'snapd' deb pkg being already installed
+pkg_snap_classic_%:
+ sudo snap install --classic $*
+
deps:
@$(foreach d,$(wildcard deps/*),cd $(d) && make)