help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

a suggestion for make(1)


From: ali hagigat
Subject: a suggestion for make(1)
Date: Sat, 22 Jan 2011 12:09:42 +0330

I see some makefiles include many other makefiles by some complex
functions. A probable reasonable feature for make is to output the
final makefile as a text file so that a reader does not have to run
those functions each time to understand the makefile. One example is
the follows:
includemakefiles= \
        $(foreach type,$(2), $(eval $(type)-y:=)) \
        $(eval subdirs-y:=) \
        $(eval -include $(1)) \
        $(foreach type,$(2), \
                $(eval $(type)s+= \
                        $$(subst $(top)/,, \
                        $$(abspath $$(patsubst src/%, \
                                        $(obj)/%, \
                                        $$(addprefix $(dir 
$(1)),$$($(type)-y))))))) \
        $(eval subdirs+=$$(subst $(PWD)/,,$$(abspath $$(addprefix $(dir
$(1)),$$(subdirs-y)))))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]