Now the server records the SVN revision in the log at startup.
[citadel.git] / citadel / Makefile.in
index 98b88ce4ce68836b2a9a8a0eb5c1680c620648d6..8639ae6e38390c77e392f1a566eaa20ab9cf9f94 100644 (file)
@@ -84,8 +84,12 @@ SOURCES=aidepost.c auth.c base64.c chkpwd.c chkpw.c citadel.c citadel_ipc.c \
        whobbs.c \
        crc16.c journaling.c citadel_dirs.c threads.c
 
+
 include Make_sources
 
+svn_revision.c: ${SOURCES}
+       ./mk_svn_revision.sh
+
 DEP_FILES=$(SOURCES:.c=.d) modules_init.d modules_upgrade.d
 
 client: $(CLIENT_TARGETS)
@@ -125,7 +129,8 @@ SERV_OBJS = server_main.o \
        locate_host.o housekeeping.o \
        internet_addressing.o journaling.o \
        parsedate.o genstamp.o ecrash.o threads.o\
-       clientsocket.o modules_init.o modules_upgrade.o $(AUTH) $(SERV_MODULES)
+       clientsocket.o modules_init.o modules_upgrade.o $(AUTH) $(SERV_MODULES) \
+       svn_revision.o
 
 citserver: $(SERV_OBJS)
        $(CC) $(SERV_OBJS) $(LDFLAGS) $(SERVER_LDFLAGS) $(LIBS) $(SERVER_LIBS) $(RESOLV) -o citserver