endif
SUBDIRS += ircd \
- ssld \
- wsockd \
- authd \
- bandb \
- tests \
- tools \
- modules \
- extensions \
- help \
- doc
-
-logdir = @prefix@/logs
+ ssld \
+ wsockd \
+ authd \
+ bandb \
+ tests \
+ tools \
+ modules \
+ extensions \
+ help \
+ doc
+
+logdir = ${prefix}/logs
BUILT_SOURCES = include/serno.h
fi
install-data-hook:
- test -d ${DESTDIR}${logdir} || mkdir -p ${DESTDIR}${logdir}
+ @test -d ${DESTDIR}${logdir} || mkdir -p ${DESTDIR}${logdir}
install-exec-hook:
- rm -f ${DESTDIR}${moduledir}/*.la
- rm -f ${DESTDIR}${moduledir}/autoload/*.la
- rm -f ${DESTDIR}${moduledir}/extensions/*.la
- rm -f ${DESTDIR}${moduledir}/*.dll.a
- rm -f ${DESTDIR}${moduledir}/autoload/*.dll.a
- rm -f ${DESTDIR}${moduledir}/extensions/*.dll.a
+ @rm -f ${DESTDIR}${moduledir}/*.la
+ @rm -f ${DESTDIR}${moduledir}/autoload/*.la
+ @rm -f ${DESTDIR}${moduledir}/extensions/*.la
+ @rm -f ${DESTDIR}${moduledir}/*.dll.a
+ @rm -f ${DESTDIR}${moduledir}/autoload/*.dll.a
+ @rm -f ${DESTDIR}${moduledir}/extensions/*.dll.a
distclean-local:
- rm -f librb/include/librb-config.h
+ @rm -f librb/include/librb-config.h
clean-local:
- rm -f include/serno.h
- rm -f ircd/ircd_lexer.c
- rm -f ircd/ircd_parser.c
- rm -f ircd/ircd_parser.h
- rm -f ircd/version.c
- rm -f ircd/version.c.last
+ @rm -f include/serno.h
+ @rm -f ircd/ircd_lexer.c
+ @rm -f ircd/ircd_parser.c
+ @rm -f ircd/ircd_parser.h
+ @rm -f ircd/version.c
+ @rm -f ircd/version.c.last
+
+uninstall:
+ @echo "Removing ${prefix}"
+ @rm -rf ${prefix}
exec_suffix = @exec_suffix@
bindir = @bindir@
libexecdir = @libexecdir@
-sysconfdir = @sysconfdir@
+sysconfdir = @sysconfdir@
localstatedir = @localstatedir@
# Local to the etc Makefile
install-mkdirs:
-@if test ! -d $(DESTDIR)$(sysconfdir); then \
- echo "mkdir -p $(sysconfdir)"; \
mkdir -p $(DESTDIR)$(sysconfdir); \
fi
install: install-mkdirs
- @echo "ircd: installing example config files ($(CONFS))"
+ @echo "Installing example config files ($(CONFS))"
@for i in $(CONFS); do \
if test -f $(DESTDIR)$(sysconfdir)/$$i; then \
$(MV) $(DESTDIR)$(sysconfdir)/$$i $(DESTDIR)$(sysconfdir)/$$i.old; \
fi; \
$(INSTALL_DATA) $$i $(DESTDIR)$(sysconfdir); \
done
-
-@if test ! -f $(DESTDIR)$(sysconfdir)/ircd.motd; then \
- echo "ircd: installing motd file (ircd.motd)"; \
+ echo "Installing motd file (ircd.motd)"; \
$(INSTALL_DATA) ircd.motd $(DESTDIR)$(sysconfdir); \
fi
-
-@if test -f $(DESTDIR)$(sysconfdir)/links.txt; then \
$(RM) $(DESTDIR)$(sysconfdir)/links.txt; \
fi
-
user help pass error challenge knock ping pong \
map trace chantrace extban monitor
-all: index
-build:
-clean:
-depend:
-lint:
-
-index:
- @echo building index files
+all:
+ @echo "Building index files"
@rm -f users/index.tmp
@for help in users/*; do \
if [ -f $$help ]; then \
@for help in $(SYMLINKS); do \
echo $$help >> users/index.tmp; \
done
- @echo 'Help topics available to users:' > users/index
- @echo '' >> users/index
+ @echo "Help topics available to users:" > users/index
+ @echo "" >> users/index
@cat users/index.tmp \
| sed -e 's|^users/||' \
| sort -u \
echo $$help >> opers/index.tmp; \
fi \
done
- @echo 'Help topics available to opers:' > opers/index
- @echo '' >> opers/index
+ @echo "Help topics available to opers:" > opers/index
+ @echo "" >> opers/index
@cat opers/index.tmp \
| sed -e 's|^opers/||' \
| sort -u \
rm -rf $(DESTDIR)$(helpdir)-old; \
fi
-@if test -d $(DESTDIR)$(helpdir); then \
- echo "ircd: backing up old help files"; \
+ echo "Backing up old help files"; \
mv $(DESTDIR)$(helpdir) $(DESTDIR)$(helpdir)-old; \
fi
-
- @echo "ircd: setting up help directory structure"
+ @echo "Setting up help directory structure"
@mkdir -p -m 755 $(DESTDIR)$(helpdir)
@mkdir -p -m 755 $(DESTDIR)$(helpdir)/opers
@mkdir -p -m 755 $(DESTDIR)$(helpdir)/users
-
@for help in opers/*; do \
- if [ -f $$help ]; then \
- ${INSTALL_DATA} $$help $(DESTDIR)$(ohelpdir); \
- fi \
+ if [ -f $$help ]; then \
+ ${INSTALL_DATA} $$help $(DESTDIR)$(ohelpdir); \
+ fi \
done
@for help in users/*; do \
- if [ -f $$help ]; then \
- $(INSTALL_DATA) $$help $(DESTDIR)$(uhelpdir); \
- fi \
+ if [ -f $$help ]; then \
+ $(INSTALL_DATA) $$help $(DESTDIR)$(uhelpdir); \
+ fi \
done
@for link in $(SYMLINKS); do \
rm -f $(DESTDIR)$(uhelpdir)/$$link; \
BUILT_SOURCES = ircd_parser.h version.c
version.c: version.c.SH ../CREDITS ../include/patchlevel.h ../include/serno.h
- $(SHELL) version.c.SH
- $(CP) version.c version.c.last
- touch version.c.SH
+ @$(SHELL) version.c.SH
+ @$(CP) version.c version.c.last
+ @touch version.c.SH
if MINGW
EXTRA_FLAGS = -Wl,--enable-runtime-pseudo-reloc -export-symbols-regex '*'
charybdis_LDADD = libircd.la -L$(top_srcdir)/librb/src -lrb
install-exec-hook: install-libircdLTLIBRARIES
- $(RM) -f version.c
+ @$(RM) -f version.c
fi
clean-local:
- rm -f include/serno.h
- rm -f src/version.c
- rm -f src/version.c.last
+ @rm -f include/serno.h
+ @rm -f src/version.c
+ @rm -f src/version.c.last
BUILT_SOURCES = version.c
version.c: version.c.SH ../CREDITS
- $(SHELL) ./version.c.SH
- $(CP) version.c version.c.last
+ @$(SHELL) ./version.c.SH
+ @$(CP) version.c version.c.last
version.lo: version.c ../include/serno.h
- $(LIBTOOL) --mode=compile $(CC) $(CFLAGS) $(INCLUDES) -c $< -o $@
+ @$(LIBTOOL) --mode=compile $(CC) $(CFLAGS) $(INCLUDES) -c $< -o $@
librb_la_SOURCES = \
unix.c \