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)/version.h.in" 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/version.h.in', needed by `version.h'. Stop.

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

Cheers,
Peter


Reply via email to