From 871aff43eb80dfca38ebde290b05a4e25c1ce8f8 Mon Sep 17 00:00:00 2001 From: Caleb Maclennan Date: Tue, 30 Jun 2020 22:46:50 +0300 Subject: [PATCH] Don't forcefully try to package something we made building optional --- src/rules.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rules.mk b/src/rules.mk index adae387..a40907c 100644 --- a/src/rules.mk +++ b/src/rules.mk @@ -279,7 +279,7 @@ install-dist: fonts | $(DISTDIR) install -Dm644 -t "$(DISTDIR)/static/WOFF/" $(STATICWOFFS) install -Dm644 -t "$(DISTDIR)/static/WOFF2/" $(STATICWOFF2S) ifeq ($(CANONICAL),glyphs) - install -Dm644 -t "$(DISTDIR)/variable/OTF/" $(VARIABLEOTFS) + $(and $(wildcard $(VARIABLEOTFS)),install -Dm644 -t "$(DISTDIR)/variable/OTF/" $(VARIABLEOTFS)) install -Dm644 -t "$(DISTDIR)/variable/TTF/" $(VARIABLETTFS) install -Dm644 -t "$(DISTDIR)/variable/WOFF/" $(VARIABLEWOFFS) install -Dm644 -t "$(DISTDIR)/variable/WOFF2/" $(VARIABLEWOFF2S) @@ -290,7 +290,7 @@ install-local: install-local-otf install-local-otf: otf # variable-otf install -Dm644 -t "$${HOME}/.local/share/fonts/OTF/" $(STATICOTFS) ifeq ($(CANONICAL),glyphs) - install -Dm644 -t "$${HOME}/.local/share/fonts/variable/" $(VARIABLEOTFS) + $(and $(wildcard $(VARIABLEOTFS)),install -Dm644 -t "$${HOME}/.local/share/fonts/variable/" $(VARIABLEOTFS)) endif install-local-ttf: ttf variable-ttf