Defining verbatim text

2009-02-05 Thread Dagobert Michelsen
Hi, I want to define text in the Makefile which goes verbatim into a file, something like define README This is readme file. please *do* read me. endef target/readme: @echo "$(README)" >$@ This of course doesn't work, but is there an equivalent which is similarly easy to use? Best

Re: Looking for nastiest makefile that uses function calls to make the makefile in memory...

2017-03-18 Thread Dagobert Michelsen
Hi Brian, Am 17.03.2017 um 17:45 schrieb Brian Cowan : > I'm chasing down use cases for the $(call and $(eval functions to > effectively build the makefile from macros in the makefile (or included > files). I'm looking to stress-test the make tool I support, which supports > GNU make syntax, but I

Re: Simulating $(MAKE) FOO=bar without forking make?

2017-05-10 Thread Dagobert Michelsen
Hi Sebastian, Am 10.05.2017 um 15:46 schrieb Sébastien Hinderer : > One of the things I do not really know how to deal with is that the main > Makefile sometimes does things like > ratget1: > $(MAKE) -C dir FOO=bar > > ... > > target2: >$(MAKE) -C dir FOO=baz Does this solve you