mirror of
https://github.com/daylinmorgan/monolisa-nerdfont-patch.git
synced 2024-12-21 22:40:44 -06:00
fix: make directory check dependent on contents
This commit is contained in:
parent
73e8520c8e
commit
36ad6b5009
1 changed files with 6 additions and 1 deletions
7
Makefile
7
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)))
|
||||
|
|
Loading…
Reference in a new issue