mirror of
https://github.com/lexborisov/Modest
synced 2024-11-22 22:01:57 +03:00
15 lines
540 B
Makefile
15 lines
540 B
Makefile
find_files_h = $(wildcard $(SRCDIR)/myhtml/$(dir)/*.h)
|
|
find_files_c = $(wildcard $(SRCDIR)/myhtml/$(dir)/*.c)
|
|
|
|
SUBDIRS := . utils
|
|
HDRS += $(foreach dir,$(SUBDIRS),$(find_files_h))
|
|
SRCS += $(foreach dir,$(SUBDIRS),$(find_files_c))
|
|
|
|
myhtml_clone: MyHTML_DIR_$(SUBDIRS)
|
|
mkdir -p $(INCLUDE_TMP)/myhtml
|
|
cp $(SRCDIR)/myhtml/*.h $(INCLUDE_TMP)/myhtml
|
|
|
|
MyHTML_DIR_$(SUBDIRS):
|
|
mkdir -p $(INCLUDE_TMP)/myhtml/$(patsubst MyHTML_DIR_%,%,$@)
|
|
cp $(SRCDIR)/myhtml/$(patsubst MyHTML_DIR_%,%,$@)/*.h $(INCLUDE_TMP)/myhtml/$(patsubst MyHTML_DIR_%,%,$@)/
|