diff --git a/Makefile.in b/Makefile.in index cf5061b0..d2a79edd 100644 --- a/Makefile.in +++ b/Makefile.in @@ -66,6 +66,11 @@ build: echo "Doing so now."; \ sh configure; \ fi + @if [ -d .hg ] ; then \ + revh=`hg parents --template '#date|shortdate#_#node|short#' 2>/dev/null | sed -e s/-//g -e s/_/-/`;\ + [ -z "$$revh" ] || echo '#define SERNO "'$$revh'"' >include/serno.h ; \ + fi + @[ -f include/serno.h ] || echo '#define SERNO "unknown"' >include/serno.h @for i in $(SUBDIRS); do \ echo "build ==> $$i";\ cd $$i;\ @@ -94,6 +99,7 @@ distclean: done depend: + @[ -f include/serno.h ] || echo '#define SERNO "unknown"' >include/serno.h @for i in $(SUBDIRS); do \ echo "depend ==> $$i";\ cd $$i;\ diff --git a/include/serno.h b/include/serno.h deleted file mode 100644 index fa44d69a..00000000 --- a/include/serno.h +++ /dev/null @@ -1 +0,0 @@ -#define SERNO "20071120-3584"