X-Git-Url: https://jfr.im/git/irc/rqf/shadowircd.git/blobdiff_plain/212380e3f42f585dc1ea927402252eb943f91f7b..4b631c0586b621747876267e8a16e076904f51de:/Makefile.in diff --git a/Makefile.in b/Makefile.in index cf5061b..90c861c 100644 --- a/Makefile.in +++ b/Makefile.in @@ -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 bandb 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;\