Modest/source/myhtml/Makefile.mk
2016-08-29 01:20:40 +04:00

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_%,%,$@)/