Author: Kev <klmitch@mit.edu>
[ircu2.10.12-pk.git] / ircd / Makefile.in
index 22c5a06196e2424130bde6e1352f7ea68127be62..01b69caec1ad3e3eb335dd2194640176b2410b9d 100644 (file)
@@ -186,6 +186,8 @@ IRCD_SRC = \
        m_who.c \
        m_whois.c \
        m_whowas.c \
+       m_xquery.c \
+       m_xreply.c \
        match.c \
        memdebug.c \
        motd.c \
@@ -242,21 +244,11 @@ ircd: ${OBJS} ../include/patchlevel.h version.o
 convert-conf: ${CONVERT_CONF_OBJS}
        ${PURIFY} ${CC} ${CONVERT_CONF_OBJS} ${LDFLAGS} -o convert-conf
 
-#
-# Make sure the anti hack checksums get included when things change
-# bleah
-#
-# Yeah, "bleah" is right.  These checksums don't cover even a fraction of
-# the "important" .c files...but are useful to determine whether someone
-# actually is running the version they claim to be running or not.  There
-# must be a better solution...perhaps sum all of the .c files and include
-# only that one sum?
-#
-version.c: ../include/patchlist.h version.c.SH umkpasswd \
-       ../include/version.h ../include/patchlevel.h ${SRC}
+.PHONY: version.c
+version.c: version.c.SH ${top_srcdir}/include/patchlist.h umkpasswd
        ${SHELL} ${srcdir}/version.c.SH ${top_srcdir}
 
-../include/patchlist.h:
+${top_srcdir}/include/patchlist.h:
        (cd ${top_srcdir} ; ./ircd-patch update)
 
 ircd_string.o: ircd_string.c chattr.tab.c
@@ -297,6 +289,7 @@ install-with-symlink: build mkbindir
          ${LN_S} ircd.`cat /tmp/ircd.tag` ${SYMLINK}; )
        @${RM} /tmp/ircd.tag
        ${INSTALL} -s -m 700 -o ${IRCDOWN} -g ${IRCDGRP} umkpasswd ${BINDIR}
+       ${INSTALL} -s -m 700 -o ${IRCDOWN} -g ${IRCDGRP} convert-conf ${BINDIR}
        ${INSTALL} -m 600 -o ${IRCDOWN} -g ${IRCDGRP} ${top_srcdir}/doc/example.conf ${DPATH}
 
 install-no-symlink: build mkbindir
@@ -309,6 +302,8 @@ install-no-symlink: build mkbindir
        fi
        @echo "Installing new ircd as ${BINDIR}/ircd :"
        ${INSTALL} -m ${IRCDMODE} -o ${IRCDOWN} -g ${IRCDGRP} ircd ${BINDIR}/ircd
+       ${INSTALL} -s -m 700 -o ${IRCDOWN} -g ${IRCDGRP} umkpasswd ${BINDIR}
+       ${INSTALL} -s -m 700 -o ${IRCDOWN} -g ${IRCDGRP} convert-conf ${BINDIR}
        ${INSTALL} -m 600 -o ${IRCDOWN} -g ${IRCDGRP} ${top_srcdir}/doc/example.conf ${DPATH}
 
 uninstall:
@@ -319,7 +314,7 @@ uninstall:
        @echo "Please remove the contents of ${DPATH} manually"
 
 clean:
-       ${RM} -f *.o *.bak ircd version.c umkpasswd convert-conf chattr.tab.c table_gen y.tab.* lex.yy.*
+       ${RM} -f *.o *.bak ircd umkpasswd convert-conf chattr.tab.c table_gen y.tab.* lex.yy.*
 
 distclean: clean
        ${RM} -f Makefile stamp-m