Makefile fix

This commit is contained in:
lexborisov 2016-10-28 01:41:16 +03:00
parent 3cfea886cb
commit 4a6c971fe8
3 changed files with 5 additions and 1 deletions

View File

@ -6,6 +6,8 @@ HDRS += $(foreach dir,$(SUBDIRS),$(find_files_h))
SRCS += $(foreach dir,$(SUBDIRS),$(find_files_c))
mycss_clone: MyCSS_DIR_$(SUBDIRS)
mkdir -p $(INCLUDE_TMP)/mycss
cp $(SRCDIR)/mycss/*.h $(INCLUDE_TMP)/mycss
MyCSS_DIR_$(SUBDIRS):
mkdir -p $(INCLUDE_TMP)/mycss/$(patsubst MyCSS_DIR_%,%,$@)

View File

@ -1,11 +1,13 @@
find_files_h = $(wildcard $(SRCDIR)/myhtml/$(dir)/*.h)
find_files_c = $(wildcard $(SRCDIR)/myhtml/$(dir)/*.c)
SUBDIRS := . "utils"
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_%,%,$@)