[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Confused by make's response
From: |
Lee Shallis |
Subject: |
Re: Confused by make's response |
Date: |
Sat, 6 Aug 2016 14:03:00 +0100 |
On 6 August 2016 at 11:55, Lee Shallis <address@hidden> wrote:
> ...it does not seem like I should be getting these errors, could someone
> enlighten me as what I'm doing wrong as I do not see the fault.
>
Never mind I found an easier way:
DEP_FILE=$(CODIT_DIR)dependencies.mk
define PRINT_INC_FILTER
$(subst $(hash)include_,,$(filter $(hash)include_%,$(subst
$(space)$(1),_,$(subst $(2),,$(3)))))
endef
PRINT_INCLUDES=
define PRINT_INC
$(strip
$(eval $(0)_SRC=$(call FILE_FULL_RD,$(1)))
$(eval $(0)_REMOTE=$(call PRINT_INC_FILTER,$(openc),$(shutc),$($(0)_SRC)))
$(eval $(0)_WSPACE=$(call PRINT_INC_FILTER,$(quote),$(quote),$($(0)_SRC)))
$(eval $(0)_SRC=0)
$(eval $(0)LUDES+=$($(0)_REMOTE) $($(0)_WSPACE))
$(shell >>$(DEP_FILE) echo $(hash) State $(1) dependencies)
$(shell >>$(DEP_FILE) echo $(2): $($(0)_REMOTE) $($(0)_WSPACE))
)
endef
$(shell >$(DEP_FILE) echo $(hash) DO NOT MODIFY! Generated on the fly)
$(foreach src,$(CODIT_SRC),$(call
PRINT_INC,$(CODIT__SRC_DIR)$(src),$(patsubst %.c,%.o,$(src))))
$(eval PRINT_INCLUDES:=$(sort $(PRINT_INCLUDES)))
$(foreach header,$(PRINT_INCLUDES),$(shell >>$(DEP_FILE) echo
$(header)$(colon)))
#$(info $(hash) Begin compiling dependencies)
#$(eval $(foreach codit_d,$(CODIT_DEP),$(call CODIT_GEN_DEP,$(codit_d),.c)))
include $(DEP_FILE)
--
We will die a permanent death unless we trust in Jesus Christ our saviour
and repent our sinful ways