fix: make directory check dependent on contents

This commit is contained in:
Daylin Morgan 2022-12-01 14:13:01 -06:00
parent 73e8520c8e
commit 36ad6b5009

View file

@ -1,7 +1,12 @@
ARGS ?= -c ARGS ?= -c
OK_TYPES := otf ttf woff woff2 OK_TYPES := otf ttf woff woff2
NF_SRC := $(shell find src -type f) 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)) UNKNOWN := $(filter-out $(OK_TYPES),$(ML_TYPES))
$(if $(UNKNOWN),$(error unknown font type in ./MonoLisa: $(UNKNOWN))) $(if $(UNKNOWN),$(error unknown font type in ./MonoLisa: $(UNKNOWN)))