From 221bf59c1f75f8db922a3688dc5d282b0868e21a Mon Sep 17 00:00:00 2001 From: Jakub Trzeciak Date: Thu, 3 Aug 2023 15:41:47 +0200 Subject: Nix flake impl --- makefile | 30 ++++-------------------------- 1 file changed, 4 insertions(+), 26 deletions(-) (limited to 'makefile') diff --git a/makefile b/makefile index ac066d5..d1eb1cf 100644 --- a/makefile +++ b/makefile @@ -1,27 +1,5 @@ +build: + nix build -all: clean main - -clean: - rm -rf build/* down - -main: - mkdir -p build - python generate.py - -install: main - mkdir -p /usr/share/fonts/neo-comic - cp build/* /usr/share/fonts/neo-comic - -down: download - -download: - mkdir -p down vendor - # wget https://www.ffonts.net/Cousin.font.zip -O down/cousin.zip - wget https://www.fontsquirrel.com/fonts/download/cousine -O down/cousin.zip - unzip -u down/cousin.zip -d down - cp down/*egular.ttf vendor/cousine.ttf - wget https://github.com/shannpersand/comic-shanns/raw/master/v2/comic%20shanns.otf -O vendor/comic-shanns.otf - #wget https://github.com/shannpersand/comic-shanns/raw/master/v1/comic-shanns.otf -O vendor/comic-shanns.otf - rm -rf down - - +install: + install -m444 -Dt "/share/fonts/neo-comic" "build/"*.ttf -- cgit v1.2.3