Commit 85d1ba456e51020f6aa7ec7cf66ed65ca04301b3

Darren Embry 2023-11-17T21:14:04

use Makefile as is proper

diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..f7980cb
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,22 @@
+.PHONY: FORCE
+
+SOURCES = sfd/IBM-Courier.sfd sfd/IBM-Courier-Italic.sfd sfd/IBM-Courier-Bold.sfd sfd/IBM-Courier-Bold-Italic.sfd
+
+TTF     = $(patsubst sfd/%.sfd,fonts/%.ttf,$(SOURCES))
+WOFF    = $(patsubst sfd/%.sfd,fonts/%.woff,$(SOURCES))
+WOFF2   = $(patsubst sfd/%.sfd,fonts/%.woff2,$(SOURCES))
+SVG     = $(patsubst sfd/%.sfd,fonts/%.svg,$(SOURCES))
+OTF     = $(patsubst sfd/%.sfd,fonts/%.otf,$(SOURCES))
+
+default: FORCE $(TTF) $(WOFF) $(WOFF2) $(SVG) $(OTF)
+
+fonts/%.ttf: sfd/%.sfd Makefile bin/convert.py
+	bin/convert.py "$<" "$@"
+fonts/%.woff: sfd/%.sfd Makefile bin/convert.py
+	bin/convert.py "$<" "$@"
+fonts/%.woff2: sfd/%.sfd Makefile bin/convert.py
+	bin/convert.py "$<" "$@"
+fonts/%.svg: sfd/%.sfd Makefile bin/convert.py
+	bin/convert.py "$<" "$@"
+fonts/%.otf: sfd/%.sfd Makefile bin/convert.py
+	bin/convert.py "$<" "$@"