1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169
|
# dancer-services Makefile (C) Patrick Alken 1998
# Modified asuffield 2001-10-28
# This is installation prefix. It can be overrided by passing PREFIX
# argument to make, as in making a fake tree for binary package.
PREFIX = @prefix@
# Set this to the directory to install the hybserv binary
BINDIR = $(PREFIX)/dancer-services
# Set this to the directory to install hybserv.conf, motd.dcc, etc
CONFDIR = $(PREFIX)/dancer-services
# Set this to the directory to install help files
# (should match HelpPath in settings.conf)
HELPDIR = $(PREFIX)/dancer-services/help
# Set this to the user who will own BINDIR
WHOAMI = @WHOAMI@
############ Don't change anything below here ############
VERSION_MAJOR = 1.8.0.6.3
VERSION = @VERSION@
CC = @CC@
CFLAGS = @CFLAGS@ -Wall -pipe
# Debugging CFLAGS
#CFLAGS = @CFLAGS@ -Wall -g -D_REENTRANT -pipe
LDFLAGS = @LDFLAGS@
LIBS = @LIBS@
LIBP = @LIBP@
RM = @RM@ -f
RMR = @RM@ -rf
CP = @CP@
CPR = @CP@ -R
LN = @LN@ -sf
CHMOD = @CHMOD@
CHOWN = @CHOWN@ -R
LS = @LS@ -l
INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_BIN = ${INSTALL} -m 755
INSTALL_SECURE = ${INSTALL} -m 600
# Executable programs
BINPROGS = cleandb encryptconf encryptdb servchk fixlevel
# Secure configuration files (mode 600)
SECUREFILES = services.conf settings.conf
# General configuration files
CONFFILES = motd.dcc motd.global
# File containing HPath variable
HPATHFIX = settings.conf
# Subdirs for make
SUBDIRS = source tools
all: source tools
@echo "*** Begin building dancer-services version $(VERSION) ***"
@echo
@for i in $(SUBDIRS); do \
echo "*** Building $$i ***"; \
cd $$i; \
${MAKE} "VERSION=$(VERSION)"; \
cd ..; \
echo; \
done
@echo "*** Done building dancer-services version $(VERSION) ***"
build: all
clean:
@echo '** Removing objects **'
@echo
@for i in $(SUBDIRS); do \
echo "*** Cleaning $$i ***"; \
cd $$i; \
${MAKE} clean; \
cd ..; \
echo; \
done
distclean: clean
$(RM) `find . -type f -name Makefile -print` include/defs.h \
include/config.h bin/settings.conf bin/cleandb \
config.status config.cache config.log ~* core \
hybserv.core `find . -type f -size 0 -print`
$(RM) `find . -type f \( -name '*.orig' -o -name '*.rej' -o -name '*~' \
-o -name '*.bak' -o -name '.#*' -o -name '#*#' -o -name '.*.orig' \
-o -name '.*.rej' -o -name '.SUMS' -o -size 0 \) -print`
mrproper: distclean
depend:
@if [ ! -f source/.depend ]; then \
touch source/.depend; \
fi
@cd source ; $(MAKE) depend
install: all install-binary install-help
@echo "*** Done installing dancer-services $(VERSION) ***"
install-binary:
@if test ! -d $(BINDIR); then \
echo Creating $(BINDIR); \
mkdir $(BINDIR) 2>/dev/null; \
fi
@if test ! -d $(CONFDIR); then \
echo Creating $(CONFDIR); \
mkdir $(CONFDIR) 2>/dev/null; \
fi
@echo '** Installing dancer-services in $(BINDIR) **'
@$(INSTALL_BIN) "bin/dancer-services" "$(BINDIR)/dancer-services"
@for file in $(BINPROGS); do \
echo "** Installing $$file in $(BINDIR) **"; \
$(INSTALL_BIN) "bin/$$file" "$(BINDIR)/$$file"; \
done
@for file in $(SECUREFILES); do \
if test ! -f "$(CONFDIR)/$$file"; then \
echo "** Installing $$file in $(CONFDIR) **"; \
$(INSTALL_SECURE) "bin/$$file" "$(CONFDIR)/$$file"; \
fi \
done
@for file in $(CONFFILES); do \
if test ! -f "$(CONFDIR)/$$file"; then \
echo "** Installing $$file in $(CONFDIR) **"; \
$(INSTALL_DATA) "bin/$$file" "$(CONFDIR)/$$file"; \
fi \
done
@$(RM) $(BINDIR)/shownicks $(BINDIR)/showchans
@echo '** Creating $(BINDIR)/shownicks **'
@$(LN) dancer-services $(BINDIR)/shownicks
@echo '** Creating $(BINDIR)/showchans **'
@$(LN) dancer-services $(BINDIR)/showchans
@echo
@echo '** Changing ownership of $(BINDIR) to $(WHOAMI) **'
@$(CHOWN) $(WHOAMI) $(BINDIR)
@if test $(BINDIR) != $(CONFDIR); then \
echo '** Changing ownership of $(CONFDIR) to $(WHOAMI) **'; \
$(CHOWN) $(WHOAMI) $(CONFDIR); \
fi
@echo
install-help:
@if test ! -d $(HELPDIR); then \
echo Creating $(HELPDIR); \
mkdir $(HELPDIR) 2>/dev/null; \
else \
echo Removing old $(HELPDIR); \
$(RMR) $(HELPDIR); \
mkdir $(HELPDIR) 2>/dev/null; \
fi
@echo Installing help files in $(HELPDIR)
@$(CPR) help/* $(HELPDIR)
@echo Changing ownership of $(HELPDIR) to $(WHOAMI)
@$(CHOWN) $(WHOAMI) $(HELPDIR)
@echo
autoconf:
autoconf autoconf/configure.in > configure
autoheader -l autoconf
# End of Makefile
|