Hi,
I created a Makefile.in where I read the content out of a file and pass it
to CFLAGS. Calling ./configure ... the Makefile will be generated an all
works well.
Makefile.in:
...
MY_REVISION_FILE=my-revision.txt
MY_REVISION=$(shell cat $(top_srcdir)/$(MY_REVISION_FILE))
AM_CFLAGS = -I$(EXTRAS_I
oborchert writes:
> I created a Makefile.in where I read the content out of a file and pass
> it to CFLAGS. Calling ./configure ... the Makefile will be generated an
> all works well.
> Makefile.in:
> ...
> MY_REVISION_FILE=my-revision.txt
> MY_REVISION=$(shell cat $(top_srcdir)/$(MY_REVISION_FI
[adding automake]
On 03/29/2013 03:44 PM, Russ Allbery wrote:
>> MY_REVISION_FILE=my-revision.txt
>> MY_REVISION=$(shell cat $(top_srcdir)/$(MY_REVISION_FILE))
$(shell ...) is a GNU make extension, and by using it, you are making
your Makefile.am useless for all other make flavors. Automake's g
On 3/30/13 7:17 AM, oborchert wrote:
Hi,
I created a Makefile.in where I read the content out of a file and pass it
to CFLAGS. Calling ./configure ... the Makefile will be generated an all
works well.
Makefile.in:
...
MY_REVISION_FILE=my-revision.txt
MY_REVISION=$(shell cat $(top_srcdir)/$(MY_RE