]> jfr.im git - solanum.git/blobdiff - Makefile.in
Add away-notify client capability.
[solanum.git] / Makefile.in
index d2a79edd2f716fd8e578f12d124315e9347fc509..7a555d8448146bce32e6393e68a09a820f78ee98 100644 (file)
@@ -46,12 +46,10 @@ CFLAGS              = @CFLAGS@
 # the system one.
 #CFLAGS= -DNDEBUG -g -O2 -D"FD_SETSIZE=1024"
 SHELL=/bin/sh
-SUBDIRS=modules extensions libcharybdis src tools servlink doc help
+SUBDIRS=libratbox modules extensions src tools ssld bandb doc help
 CLEANDIRS = ${SUBDIRS}
 RSA_FILES=rsa_respond/README rsa_respond/respond.c rsa_respond/Makefile
 
-MAKE = make ${MFLAGS} 
-
 all:   build
 
 
@@ -66,15 +64,18 @@ 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/_/-/`;\
+       @if [ -d .git ] ; then \
+               revh=`git log -1 --date=short --pretty=format:%cd_%h 2>/dev/null | sed -e s/-//g -e s/_/-/`;\
+               [ -z "$$revh" ] || echo '#define SERNO "'$$revh'"' >include/serno.h ; \
+       elif [ -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;\
-               ${MAKE} build || exit; cd ..;\
+               ${MAKE} || exit; cd ..;\
        done
 
 clean: