From 36ad6b5009721bc3099122ed98a365d1c78abfb3 Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Thu, 1 Dec 2022 14:13:01 -0600 Subject: [PATCH] fix: make directory check dependent on contents --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 3175556..46bb771 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,12 @@ ARGS ?= -c OK_TYPES := otf ttf woff woff2 NF_SRC := $(shell find src -type f) -ML_TYPES := $(shell find ./MonoLisa -mindepth 1 -type d -exec basename {} \;) +ML_TYPES := $(shell find ./MonoLisa \ + -mindepth 1 \ + -maxdepth 1 \ + -not -empty \ + -type d \ + -exec basename {} \;) UNKNOWN := $(filter-out $(OK_TYPES),$(ML_TYPES)) $(if $(UNKNOWN),$(error unknown font type in ./MonoLisa: $(UNKNOWN)))