Modest/source/myhtml/Makefile.mk

15 lines
540 B
Makefile
Raw Normal View History

2016-08-29 00:20:40 +03:00
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_%,%,$@)/