]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - Makefile.in
m_webirc: use rb_crypt() instead of crypt()
[irc/rqf/shadowircd.git] / Makefile.in
index cf5061b0127c6e634469561058a3f42f3f1c95c0..f86c522ccc00488f646a3f7a83ccfc6dd7bb5d83 100644 (file)
@@ -46,7 +46,7 @@ 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 doc help
 CLEANDIRS = ${SUBDIRS}
 RSA_FILES=rsa_respond/README rsa_respond/respond.c rsa_respond/Makefile
 
@@ -66,10 +66,15 @@ 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;\
-               ${MAKE} build || exit; cd ..;\
+               ${MAKE} || exit; cd ..;\
        done
 
 clean:
@@ -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;\