mirror of
https://github.com/lexborisov/Modest
synced 2024-11-26 07:39:34 +03:00
15 lines
571 B
Makefile
15 lines
571 B
Makefile
find_files_h = $(wildcard $(SRCDIR)/modest/$(dir)/*.h)
|
|
find_files_c = $(wildcard $(SRCDIR)/modest/$(dir)/*.c)
|
|
|
|
SUBDIRS := . finder style node layer render utils
|
|
HDRS += $(foreach dir,$(SUBDIRS),$(find_files_h))
|
|
SRCS += $(foreach dir,$(SUBDIRS),$(find_files_c))
|
|
|
|
modest_clone: MODEST_DIR_$(SUBDIRS)
|
|
mkdir -p $(INCLUDE_TMP)/modest
|
|
cp $(SRCDIR)/modest/*.h $(INCLUDE_TMP)/modest
|
|
|
|
MODEST_DIR_$(SUBDIRS):
|
|
mkdir -p $(INCLUDE_TMP)/modest/$(patsubst MODEST_DIR_%,%,$@)
|
|
cp $(SRCDIR)/modest/$(patsubst MODEST_DIR_%,%,$@)/*.h $(INCLUDE_TMP)/modest/$(patsubst MODEST_DIR_%,%,$@)/
|