1 # IRC - Internet Relay Chat, Makefile
2 # Copyright (C) 1990, Jarkko Oikarinen
4 # This program is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 1, or (at your option)
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, write to the Free Software
16 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
26 INSTDIRS=src doc tools
27 CLEANSUBDIRS=src tools
33 INSTALL_DIR=@INSTALL_DIR@
38 -@if [ ! -f include/setup.h ] ; then \
39 echo "Hmm...doesn't look like you've run configure..."; \
40 echo "Doing so now."; \
43 @for i in $(SUBDIRS); do \
46 ${MAKE} build; cd ..;\
48 @if [ -f modules/install.sh ] ; then \
49 echo "Building modules"; \
51 INSTALL_DIR="${INSTALL_DIR}" ./install.sh build; \
54 @echo "******************************************************************************"
55 @echo "* For help with bahamut, please refer to http://bahamut.dal.net/ *"
56 @echo "* If you encouter serious security related bugs, please mail coders@dal.net *"
57 @echo "* For other bug reports and inquiries, please mail dalnet-src@dal.net *"
58 @echo "* Thank you for choosing Bahamut! - The DALnet coding team *"
59 @echo "******************************************************************************"
62 @for i in $(SUBDIRS); do \
63 echo "Building $$i [profile]";\
65 ${MAKE} profile; cd ..;\
70 @for i in $(CLEANSUBDIRS); do \
73 ${MAKE} clean; cd ..;\
75 -@if [ -f include/setup.h ] ; then \
76 echo "To really restart installation, make distclean" ; \
81 @for i in $(SUBDIRS); do \
84 ${MAKE} clean; cd ..;\
86 -@if [ -f include/setup.h ] ; then \
87 echo "To really restart installation, make distclean" ; \
91 ${RM} -f Makefile *~ *.rej *.orig core ircd.core *.tmp
92 ${RM} -f config.status config.cache config.log
93 cd include; ${RM} -f setup.h *~ *.rej *.orig options.h; cd ..
94 @for i in $(SUBDIRS); do \
97 ${MAKE} distclean; cd ..;\
101 @for i in $(SUBDIRS); do \
102 echo "Making dependencies in $$i";\
104 ${MAKE} depend; cd ..;\
108 @if test ! -d $(INSTALL_DIR); then \
109 echo "Creating directory $(INSTALL_DIR)"; \
110 mkdir $(INSTALL_DIR); \
112 @for i in $(INSTDIRS); do \
117 @if [ -f modules/install.sh ] ; then \
118 echo "Building modules"; \
120 INSTALL_DIR="${INSTALL_DIR}" ./install.sh install; \
124 @echo "Now edit $(INSTALL_DIR)/template.conf"
125 @echo "and move it to ircd.conf - and you'll be all set."
126 @echo "See the doc/ directory and the INSTALL file for more assistance"
127 @echo "Thank you for choosing Bahamut!"