From 1f4e20745a0b0da82eebc8cd2ae5f1e6db397b08 Mon Sep 17 00:00:00 2001 From: jserv Date: Thu, 25 Oct 2007 18:57:25 +0000 Subject: formal version generation for gsmd-version.h considering release version or not (svn repository). git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@3275 99fdad57-331a-0410-800a-d7fa5415bdb3 --- src/gsmd/Makefile.am | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/gsmd/Makefile.am b/src/gsmd/Makefile.am index 9ac45ee..06d925c 100644 --- a/src/gsmd/Makefile.am +++ b/src/gsmd/Makefile.am @@ -4,8 +4,13 @@ plugindir = $(libdir)/gsmd gsmd-version.h: echo -e '#ifndef GSMD_VERSION' \ - '\n#define GSMD_VERSION "'`svnversion`'"' \ - '\n#endif' > gsmd-version.h + '\n#define GSMD_VERSION "$(VERSION)" \\' > gsmd-version.h + if test -d .svn; then \ + echo -e '\t"+'`svnversion`'"' >> gsmd-version.h; \ + else \ + echo -e '\t/* release version */' >> gsmd-version.h; \ + fi + echo -e '#endif' >> gsmd-version.h BUILT_SOURCES = gsmd-version.h sbin_PROGRAMS = gsmd -- cgit v1.2.3