2007-04-03 11:37:39 +00:00
|
|
|
# $Id: Makefile.in 3376 2007-04-03 11:37:39Z nenolod $
|
2007-01-25 06:40:21 +00:00
|
|
|
CC = @CC@
|
|
|
|
INSTALL = @INSTALL@
|
|
|
|
INSTALL_BIN = @INSTALL_PROGRAM@
|
|
|
|
INSTALL_DATA = @INSTALL_DATA@
|
|
|
|
INSTALL_SUID = @INSTALL_PROGRAM@ -o root -m 4755
|
|
|
|
RM = @RM@
|
|
|
|
LEX = @LEX@
|
|
|
|
LEXLIB = @LEXLIB@
|
|
|
|
CFLAGS = @IRC_CFLAGS@ -DIRCD_PREFIX=\"@prefix@\"
|
|
|
|
LDFLAGS = @LDFLAGS@
|
|
|
|
MKDEP = ${CC} -MM
|
|
|
|
MV = @MV@
|
|
|
|
RM = @RM@
|
|
|
|
CP = @CP@
|
|
|
|
TOUCH = @TOUCH@
|
|
|
|
|
2012-03-01 02:41:09 +00:00
|
|
|
PROGRAM_PREFIX = @PROGRAM_PREFIX@
|
|
|
|
|
2007-01-25 06:40:21 +00:00
|
|
|
prefix = @prefix@
|
|
|
|
exec_prefix = @exec_prefix@
|
|
|
|
exec_suffix = @exec_suffix@
|
|
|
|
bindir = @bindir@
|
|
|
|
libexecdir = @libexecdir@
|
2012-03-02 01:11:42 +00:00
|
|
|
sysconfdir = @sysconfdir@
|
2007-01-25 06:40:21 +00:00
|
|
|
localstatedir = @localstatedir@
|
|
|
|
# Change this later! -- adrian
|
|
|
|
moduledir = @moduledir@
|
|
|
|
automoduledir = @moduledir@/autoload
|
|
|
|
|
|
|
|
# Local to the etc Makefile
|
|
|
|
mandir = @mandir@/man8
|
|
|
|
MANPAGES = ircd.8
|
|
|
|
|
|
|
|
CONFS = example.conf reference.conf
|
|
|
|
|
|
|
|
SSL_LIBS = @SSL_LIBS@
|
|
|
|
SSL_INCLUDES = @SSL_INCLUDES@
|
|
|
|
|
|
|
|
IRCDLIBS = @LIBS@ $(SSL_LIBS)
|
|
|
|
|
|
|
|
INCLUDES = -I../include $(SSL_INCLUDES)
|
|
|
|
CPPFLAGS = ${INCLUDES} @CPPFLAGS@
|
2009-02-08 20:18:26 +00:00
|
|
|
|
|
|
|
all: build
|
2007-01-25 06:40:21 +00:00
|
|
|
|
|
|
|
install-mkdirs:
|
2012-03-02 01:11:42 +00:00
|
|
|
-@if test ! -d $(DESTDIR)$(sysconfdir); then \
|
|
|
|
echo "mkdir -p $(sysconfdir)"; \
|
|
|
|
mkdir -p $(DESTDIR)$(sysconfdir); \
|
2007-01-25 06:40:21 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
-@if test ! -d $(DESTDIR)$(mandir); then \
|
2007-04-03 11:37:39 +00:00
|
|
|
echo "mkdir -p $(mandir)"; \
|
|
|
|
mkdir -p $(DESTDIR)$(mandir); \
|
2007-01-25 06:40:21 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
install: install-mkdirs build
|
|
|
|
@echo "ircd: installing example config files ($(CONFS))"
|
|
|
|
@for i in $(CONFS); do \
|
2012-03-02 01:11:42 +00:00
|
|
|
if test -f $(DESTDIR)$(sysconfdir)/$$i; then \
|
|
|
|
$(MV) $(DESTDIR)$(sysconfdir)/$$i $(DESTDIR)$(sysconfdir)/$$i.old; \
|
2007-01-25 06:40:21 +00:00
|
|
|
fi; \
|
2012-03-02 01:11:42 +00:00
|
|
|
$(INSTALL_DATA) $$i $(DESTDIR)$(sysconfdir); \
|
2007-01-25 06:40:21 +00:00
|
|
|
done
|
|
|
|
|
2012-03-02 01:11:42 +00:00
|
|
|
-@if test ! -f $(DESTDIR)$(sysconfdir)/ircd.motd; then \
|
2007-01-25 06:40:21 +00:00
|
|
|
echo "ircd: installing motd file (ircd.motd)"; \
|
2012-03-02 01:11:42 +00:00
|
|
|
$(INSTALL_DATA) ircd.motd $(DESTDIR)$(sysconfdir); \
|
2007-01-25 06:40:21 +00:00
|
|
|
fi
|
|
|
|
|
2012-03-02 01:11:42 +00:00
|
|
|
-@if test -f $(DESTDIR)$(sysconfdir)/links.txt; then \
|
|
|
|
$(RM) $(DESTDIR)$(sysconfdir)/links.txt; \
|
2007-01-25 06:40:21 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
@echo "ircd: installing manpage"
|
|
|
|
@for i in $(MANPAGES); do \
|
2012-03-01 02:41:09 +00:00
|
|
|
if test ! -f $(DESTDIR)$(mandir)/$(PROGRAM_PREFIX)$$i; then \
|
|
|
|
$(INSTALL_DATA) $$i $(DESTDIR)$(mandir)/$(PROGRAM_PREFIX)$$i; \
|
2007-01-25 06:40:21 +00:00
|
|
|
fi; \
|
|
|
|
done
|
|
|
|
|
|
|
|
build:
|
|
|
|
|
|
|
|
clean:
|
|
|
|
|
|
|
|
depend:
|
|
|
|
|
|
|
|
lint:
|
|
|
|
|
|
|
|
distclean:
|
|
|
|
${RM} -f Makefile
|