Implement a mini dependency management system
[khome.git] / Makefile
index 7ad28bf..5c490ba 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,10 +1,29 @@
 MAKEFLAGS := --no-builtin-rules
 
-.PHONY: install
-
-install:
-       @cp -Rp bin $(HOME)/
-       @cp -Rp lib $(HOME)/
-       @cp     .profile $(HOME)/
-       @cp     .fonts.conf $(HOME)/
-       @fc-cache $(HOME)/.fonts
+.PHONY: home pkgs_install pkgs_purge pkgs deps
+
+home:
+       @cp  -Rp  home/bin           $(HOME)/
+       @cp  -Rp  home/lib           $(HOME)/
+       @cp       home/.compton.conf $(HOME)/
+       @cp  -Rp  home/.config/      $(HOME)/
+       @cp       home/.profile      $(HOME)/
+       @cp       home/.fonts.conf   $(HOME)/
+       @fc-cache                    $(HOME)/.fonts
+       @cp       home/.Rprofile     $(HOME)/
+       @cp       home/.mpdconf      $(HOME)/
+       @cp       home/.tmux.conf    $(HOME)/
+       @cp       home/.xbindkeysrc  $(HOME)/
+
+pkgs:
+       $(MAKE) pkgs_install
+       $(MAKE) pkgs_purge
+
+pkgs_install: list pkgs-install
+       sudo apt install $(shell ./list pkgs-install)
+
+pkgs_purge: list pkgs-purge
+       sudo apt purge $(shell ./list pkgs-purge)
+
+deps:
+       @$(foreach d,$(wildcard deps/*),cd $(d) && make)
This page took 0.031697 seconds and 4 git commands to generate.