Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date: Sat, 30 Nov 2013 16:42:54 -0500
From: Rich Felker <>
Subject: Re: Storing version information in

On Wed, Nov 27, 2013 at 12:48:06AM -0500, Rich Felker wrote:
> As for the build system, the proposed rule for generating version.c
> is this:
> src/internal/version.c: VERSION $(wildcard .git .git/*)
> 	sh tools/ > $@

I think I'm going to replace this with:

src/internal/version.c: src/internal/version.h

and have version.h be the generated file, containing just:

#define VERSION "..."

This gives more flexibility to modify the mechanisms/linkage of stuff
in version.c without having to edit a script, and makes the
script much more generic. It also avoids the need to hard-code a
generated .c file into the SRCS/OBJS lists.


Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.