0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-17 15:30:52 +01:00
construct/help/Makefile.in
Nathan Phillip Brink c74836dc4a Add explicit support for being installed into a system triggered with --enable-fhs-paths.
Add two mechanism for avoiding name-collisions in a system-wide
installation of charybdis. The ssld and bandb daemons, intended to be
directly used by ircd and not the user, install into libexec when
--enable-fhs-paths is set. For binaries which are meant to be in PATH
(bindir), such as ircd and viconf, there is now an option
--with-program-prefix=progprefix inspired by automake. If the user
specifies --with-program-prefix=charybdis, the ircd binary is named
charybdisircd when installed.

Add support for saving the pidfile to a rundir and storing the ban
database in localstatedir instead of in sysconfdir. This is, again,
conditional on --enable-fhs-paths.

Fix(?) genssl.sh to always write created SSL key/certificate/dh
parameters to the sysconfdir specified during ./configure. The
previous behavior was to assume that the user ran genssl.sh after
ensuring that his current working directory was either sysconfdir or a
sibling directory of sysconfdir.
2012-03-01 02:41:09 +00:00

100 lines
2.3 KiB
Makefile

# Generated automatically from Makefile.in by configure.
# $Id: Makefile.in 1044 2006-03-12 16:05:39Z jilles $
# makefile for include/
INSTALL= @INSTALL@
INSTALL_DATA= @INSTALL_DATA@
RM= @RM@
prefix= @prefix@
exec_prefix= @exec_prefix@
datarootdir = @datarootdir@
datadir = @datadir@
helpdir= @helpdir@
uhelpdir= ${helpdir}/users
ohelpdir= ${helpdir}/opers
SYMLINKS= topic accept cmode admin names links away whowas \
version kick who invite quit join list nick oper part \
time credits motd userhost users whois ison lusers \
user help pass error challenge knock ping pong \
cprivmsg cnotice map trace chantrace extban
all:
build:
clean:
depend:
lint:
index:
@echo building index files
rm -f users/index.tmp
@for help in users/*; do \
if [ -f $$help ]; then \
echo $$help >> users/index.tmp; \
fi \
done
@for help in $(SYMLINKS); do \
echo $$help >> users/index.tmp; \
done
echo 'Help topics available to users:' > users/index
echo '' >> users/index
cat users/index.tmp \
| sed -e 's|^users/||' \
| sort -u \
| tr a-z A-Z \
| column -c 65 -x \
| expand \
>> users/index
rm -f users/index.tmp
rm -f opers/index.tmp
@for help in opers/*; do \
if [ -f $$help ]; then \
echo $$help >> opers/index.tmp; \
fi \
done
echo 'Help topics available to opers:' > opers/index
echo '' >> opers/index
cat opers/index.tmp \
| sed -e 's|^opers/||' \
| sort -u \
| tr a-z A-Z \
| column -c 65 -s ' ' -x \
| expand \
>> opers/index
rm -f opers/index.tmp
install:
-@if test -d $(DESTDIR)$(helpdir)-old; then \
rm -rf $(DESTDIR)$(helpdir)-old; \
fi
-@if test -d $(DESTDIR)$(helpdir); then \
echo "ircd: backing up old help files"; \
mv $(DESTDIR)$(helpdir) $(DESTDIR)$(helpdir)-old; \
fi
@echo "ircd: 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 \
done
@for help in users/*; do \
if [ -f $$help ]; then \
$(INSTALL_DATA) $$help $(DESTDIR)$(uhelpdir); \
fi \
done
@for link in $(SYMLINKS); do \
rm -f $(DESTDIR)$(uhelpdir)/$$link; \
ln -s $(ohelpdir)/$$link $(DESTDIR)$(uhelpdir); \
done
distclean:
${RM} -f Makefile
depend: