spleen

Monospaced bitmap fonts for consoles, terminals, and code editors
Log | Files | Refs | README | LICENSE

commit 6ad2512a5076a7275accfe086ce2dab19fb5cadc
parent e613c1e6a6d5a8e6251e359209f58160a6085480
Author: Frederic Cambus <fred@statdns.com>
Date:   Fri,  8 Feb 2019 18:16:11 +0100

Do not hardcode font sizes in Makefile, use a for loop instead.

Diffstat:
MMakefile | 20+++++++++-----------
1 file changed, 9 insertions(+), 11 deletions(-)

diff --git a/Makefile b/Makefile @@ -4,7 +4,7 @@ # https://www.cambus.net/ # # Created: 2019-01-29 -# Last Updated: 2019-02-06 +# Last Updated: 2019-02-08 # # Spleen is released under the BSD 2-Clause license. # See LICENSE file for details. @@ -22,23 +22,21 @@ FONTSET = $(DATADIR)/fontsets/Uni1.512 OPTIONS = $(EQUIVALENT) $(FONTSET) 512 +SIZES = 5x8 8x16 12x24 16x32 32x64 + TARGET = all all: pcf psf dfont pcf: - $(BDFTOPCF) -t -o spleen-5x8.pcf spleen-5x8.bdf - $(BDFTOPCF) -t -o spleen-8x16.pcf spleen-8x16.bdf - $(BDFTOPCF) -t -o spleen-12x24.pcf spleen-12x24.bdf - $(BDFTOPCF) -t -o spleen-16x32.pcf spleen-16x32.bdf - $(BDFTOPCF) -t -o spleen-32x64.pcf spleen-32x64.bdf +.for size in $(SIZES) + $(BDFTOPCF) -t -o spleen-${size}.pcf spleen-${size}.bdf +.endfor psf: - $(BDF2PSF) --fb spleen-5x8.bdf $(OPTIONS) spleen-5x8.psfu - $(BDF2PSF) --fb spleen-8x16.bdf $(OPTIONS) spleen-8x16.psfu - $(BDF2PSF) --fb spleen-12x24.bdf $(OPTIONS) spleen-12x24.psfu - $(BDF2PSF) --fb spleen-16x32.bdf $(OPTIONS) spleen-16x32.psfu - $(BDF2PSF) --fb spleen-32x64.bdf $(OPTIONS) spleen-32x64.psfu +.for size in $(SIZES) + $(BDF2PSF) --fb spleen-${size}.bdf $(OPTIONS) spleen-${size}.psfu +.endfor dfont: $(UFOND) -dfont *.bdf