blob: 81d5d6368f36b1069273eff3f8d6cc3dd2220fb0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
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/utils
cp $(SRCDIR)/myhtml/utils/*.h $(INCLUDE_TMP)/myhtml/utils
MyHTML_DIR_$(SUBDIRS):
mkdir -p $(INCLUDE_TMP)/myhtml/$(patsubst MyHTML_DIR_%,%,$@)
cp $(SRCDIR)/myhtml/$(patsubst MyHTML_DIR_%,%,$@)/*.h $(INCLUDE_TMP)/myhtml/$(patsubst MyHTML_DIR_%,%,$@)/
|