Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/lexborisov/Modest.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/myhtml/Makefile.mk')
-rw-r--r--source/myhtml/Makefile.mk21
1 files changed, 10 insertions, 11 deletions
diff --git a/source/myhtml/Makefile.mk b/source/myhtml/Makefile.mk
index 81d5d63..b4b30cb 100644
--- a/source/myhtml/Makefile.mk
+++ b/source/myhtml/Makefile.mk
@@ -1,14 +1,13 @@
-find_files_h = $(wildcard $(SRCDIR)/myhtml/$(dir)/*.h)
-find_files_c = $(wildcard $(SRCDIR)/myhtml/$(dir)/*.c)
+myhtml_dirs := .
+myhtml_objs := $(call MODEST_UTILS_OBJS,myhtml,$(myhtml_dirs))
-SUBDIRS := . utils
-HDRS += $(foreach dir,$(SUBDIRS),$(find_files_h))
-SRCS += $(foreach dir,$(SUBDIRS),$(find_files_c))
+myhtml_description := HTML parser by https://html.spec.whatwg.org/multipage/
+myhtml_dependencies := mycore myencoding myport
-myhtml_clone: MyHTML_DIR_$(SUBDIRS)
- mkdir -p $(INCLUDE_TMP)/myhtml/utils
- cp $(SRCDIR)/myhtml/utils/*.h $(INCLUDE_TMP)/myhtml/utils
+myhtml_all: $(myhtml_objs)
-MyHTML_DIR_$(SUBDIRS):
- mkdir -p $(INCLUDE_TMP)/myhtml/$(patsubst MyHTML_DIR_%,%,$@)
- cp $(SRCDIR)/myhtml/$(patsubst MyHTML_DIR_%,%,$@)/*.h $(INCLUDE_TMP)/myhtml/$(patsubst MyHTML_DIR_%,%,$@)/
+myhtml_clean:
+ rm -f $(myhtml_objs)
+
+myhtml_clone:
+ $(call MODEST_UTILS_HDRS_CLONE,myhtml,$(myhtml_dirs))