[Top][All Lists]

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

Re: revision control info in generated files

From: Peter Johansson
Subject: Re: revision control info in generated files
Date: Mon, 12 Apr 2010 08:59:38 -0400
User-agent: Thunderbird (X11/20090105)

Jef Driesen wrote:
mylib_la_SOURCES += version.c
mylib_HEADERS += version.h

BUILT_SOURCES = version.h
EXTRA_DIST += $(srcdir)/version
CLEANFILES += version-t

Took me a while to figure out the escaping of the @ symbol. It seems to work fine, except that I would like to add "$(srcdir)/" as a dependency for "version.h". But when I add that, make distcheck fails and I don't know why.

The error I get is:

make[3]: *** No rule to make target `../../src/', needed by `version.h'. Stop.

Looks like you're not distributing `'. I would try adding `EXTRA_DIST ='. Also, I would try avoid distributing `version.h', but not sure how to do that from top of my head.


reply via email to

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