MAKEFLAGS := --no-builtin-rules
-.PHONY: home pkgs_install pkgs_purge pkgs
+.PHONY: home pkgs_install pkgs_purge pkgs deps
home:
@cp -Rp home/bin $(HOME)/
pkgs_purge: list pkgs-purge
sudo apt purge $(shell ./list pkgs-purge)
+
+deps:
+ @$(foreach d,$(wildcard deps/*),cd $(d) && make)
--- /dev/null
+.PHONY: maybeall all download extract build install
+
+maybeall:
+ $(MAKE) build
+ $(MAKE) install
+
+all:
+ $(MAKE) download
+ $(MAKE) extract
+ $(MAKE) build
+ $(MAKE) install
+
+download:
+ mkdir -p data
+ cd data && wget 'https://sourceforge.net/projects/terminus-font/files/terminus-font-4.48/terminus-font-4.48.tar.gz'
+
+extract:
+ cd data && tar xzf terminus-font-4.48.tar.gz
+
+build: data/terminus-font-4.48
+ cd data/terminus-font-4.48 && ./configure && make -j $(shell nproc)
+
+install: data/terminus-font-4.48
+ cd data/terminus-font-4.48 && make install fontdir
+
+
+data/terminus-font-4.48.tar.gz:
+ $(MAKE) download
+
+data/terminus-font-4.48: data/terminus-font-4.48.tar.gz
+ $(MAKE) extract