mirror of
https://github.com/lexborisov/Modest
synced 2024-11-22 13:51:39 +03:00
15 lines
534 B
Makefile
15 lines
534 B
Makefile
find_files_h = $(wildcard $(SRCDIR)/myfont/$(dir)/*.h)
|
|
find_files_c = $(wildcard $(SRCDIR)/myfont/$(dir)/*.c)
|
|
|
|
SUBDIRS := .
|
|
HDRS += $(foreach dir,$(SUBDIRS),$(find_files_h))
|
|
SRCS += $(foreach dir,$(SUBDIRS),$(find_files_c))
|
|
|
|
myfont_clone: MyFONT_DIR_$(SUBDIRS)
|
|
mkdir -p $(INCLUDE_TMP)/myfont
|
|
cp $(SRCDIR)/myfont/*.h $(INCLUDE_TMP)/myfont
|
|
|
|
MyFONT_DIR_$(SUBDIRS):
|
|
mkdir -p $(INCLUDE_TMP)/myfont/$(patsubst MyFONT_DIR_%,%,$@)
|
|
cp $(SRCDIR)/myfont/$(patsubst MyFONT_DIR_%,%,$@)/*.h $(INCLUDE_TMP)/myfont/$(patsubst MyFONT_DIR_%,%,$@)/
|