summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/gsmd/Makefile.am9
1 files 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
personal git repositories of Harald Welte. Your mileage may vary