Build: move version handling from Makefile to configure

Version information is now in VERSION.m4 instead of VERSION.
Makefile target version-update was minimized and configure can be run
before make. Makefile temporarily contains hardcoded version which has
to match the one specified in VERSION.m4.

This is preparatory step which will allow us to replace hand-made
Makefile with one generated by Automake.

https://fedorahosted.org/freeipa/ticket/6418

Reviewed-By: Martin Basti <mbasti@redhat.com>
Reviewed-By: Christian Heimes <cheimes@redhat.com>
This commit is contained in:
Petr Spacek
2016-10-21 22:35:28 +02:00
committed by Martin Babinsky
parent 2725e440bf
commit c48e5fd811
9 changed files with 127 additions and 124 deletions

View File

@@ -35,14 +35,14 @@
* END COPYRIGHT BLOCK **/
/* The full version including strings */
#define VERSION "__VERSION__"
#define VERSION "@VERSION@"
/* Just the numeric portion of the version so one can do direct numeric
comparisons to see if the API is compatible.
*/
#define NUM_VERSION __NUM_VERSION__
#define NUM_VERSION @NUM_VERSION@
/* The data version. This is distinguished from the server version based
on the compatibility of the data/plugins/etc from one version to another.
*/
#define DATA_VERSION __DATA_VERSION__
#define DATA_VERSION @DATA_VERSION@