2002-01-02 03:52:09 +01:00
|
|
|
#
|
|
|
|
# ngIRCd -- The Next Generation IRC Daemon
|
2008-04-20 14:50:46 +02:00
|
|
|
# Copyright (c)2001-2008 Alexander Barton (alex@barton.de)
|
2002-01-02 03:52:09 +01:00
|
|
|
#
|
2003-07-09 23:16:33 +02:00
|
|
|
# This program is free software; you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
# the Free Software Foundation; either version 2 of the License, or
|
|
|
|
# (at your option) any later version.
|
|
|
|
# Please read the file COPYING, README and AUTHORS for more information.
|
2002-01-02 03:52:09 +01:00
|
|
|
#
|
2001-12-11 22:53:04 +01:00
|
|
|
|
|
|
|
AUTOMAKE_OPTIONS = gnu
|
|
|
|
|
2003-12-31 18:20:11 +01:00
|
|
|
SUBDIRS = doc src man contrib
|
2001-12-11 22:53:04 +01:00
|
|
|
|
2004-05-11 02:32:31 +02:00
|
|
|
clean-local:
|
|
|
|
rm -f build-stamp*
|
2008-08-12 17:30:38 +02:00
|
|
|
rm -rf ngircd.dest
|
2004-05-11 02:32:31 +02:00
|
|
|
|
2001-12-11 22:53:04 +01:00
|
|
|
maintainer-clean-local:
|
2002-03-10 16:40:26 +01:00
|
|
|
rm -rf autom4te.cache
|
2001-12-11 22:53:04 +01:00
|
|
|
rm -f Makefile.in Makefile aclocal.m4 configure
|
|
|
|
rm -f mkinstalldirs missing depcomp install-sh
|
2004-05-11 02:32:31 +02:00
|
|
|
rm -f config.log debian
|
2001-12-11 22:53:04 +01:00
|
|
|
|
2008-04-20 14:52:00 +02:00
|
|
|
testsuite:
|
|
|
|
make -C src/testsuite check
|
|
|
|
|
2002-03-25 20:39:48 +01:00
|
|
|
lint:
|
|
|
|
make -C src/ngircd lint
|
|
|
|
|
2005-04-09 14:27:40 +02:00
|
|
|
srcdoc:
|
2005-07-22 23:01:52 +02:00
|
|
|
make -C doc srcdoc
|
2005-04-09 14:27:40 +02:00
|
|
|
|
2009-01-06 16:01:52 +01:00
|
|
|
have-xcodebuild:
|
2008-04-20 14:50:46 +02:00
|
|
|
@xcodebuild -project contrib/MacOSX/ngIRCd.xcodeproj -list \
|
|
|
|
>/dev/null 2>&1 \
|
2005-04-09 14:27:40 +02:00
|
|
|
|| ( echo; echo "Error: \"xcodebuild\" not found!"; echo; exit 1 )
|
2009-01-06 16:01:52 +01:00
|
|
|
|
|
|
|
xcode: have-xcodebuild
|
|
|
|
rel=`grep AC_INIT configure.in | cut -d' ' -f2 | cut -d')' -f1`; \
|
|
|
|
def="GCC_PREPROCESSOR_DEFINITIONS=\"VERSION=\\\"$$rel\\\"\""; \
|
|
|
|
xcodebuild -project contrib/MacOSX/ngIRCd.xcodeproj -alltargets \
|
|
|
|
-configuration Default $$def build
|
|
|
|
|
|
|
|
xcode-clean: have-xcodebuild
|
2008-04-20 14:50:46 +02:00
|
|
|
xcodebuild -project contrib/MacOSX/ngIRCd.xcodeproj -alltargets \
|
2009-01-06 16:01:52 +01:00
|
|
|
-configuration Default clean
|
|
|
|
rm -fr contrib/MacOSX/build
|
2005-04-09 14:27:40 +02:00
|
|
|
|
2002-10-01 11:57:08 +02:00
|
|
|
rpm: distcheck
|
|
|
|
rpm -ta ngircd-*.tar.gz
|
|
|
|
|
2003-07-09 23:16:33 +02:00
|
|
|
deb:
|
2004-01-01 23:24:48 +01:00
|
|
|
[ -f debian/rules ] || ln -s contrib/Debian debian
|
2008-11-21 21:27:23 +01:00
|
|
|
dpkg-buildpackage -rfakeroot -i
|
2003-07-09 23:16:33 +02:00
|
|
|
|
2009-01-06 16:01:52 +01:00
|
|
|
osxpkg: have-xcodebuild
|
2008-08-12 17:30:38 +02:00
|
|
|
@packagemaker >/dev/null 2>&1; [ $$? -ge 1 ] \
|
|
|
|
|| ( echo; echo "Error: \"packagemaker\" not found!"; echo; exit 2)
|
|
|
|
make clean
|
|
|
|
./configure --prefix=/opt/ngircd
|
|
|
|
make xcode
|
|
|
|
make -C contrib/MacOSX de.barton.ngircd.plist
|
|
|
|
mkdir -p ngircd.dest/opt/ngircd/sbin
|
|
|
|
DESTDIR="$$PWD/ngircd.dest" make -C doc install
|
|
|
|
DESTDIR="$$PWD/ngircd.dest" make -C contrib install
|
|
|
|
DESTDIR="$$PWD/ngircd.dest" make -C man install
|
|
|
|
cp contrib/MacOSX/build/Default/ngIRCd \
|
|
|
|
ngircd.dest/opt/ngircd/sbin/ngircd
|
|
|
|
rm ngircd.dest/opt/ngircd/etc/ngircd.conf
|
|
|
|
echo "Have a nice day IRCing!" >ngircd.dest/opt/ngircd/etc/ngircd.motd
|
|
|
|
chmod -R a-s,og-w,a+rX ngircd.dest
|
|
|
|
cd contrib/MacOSX && packagemaker \
|
|
|
|
--doc ngIRCd.pmdoc \
|
|
|
|
--out ../../$(distdir).mpkg
|
|
|
|
rm -f $(distdir).mpkg.zip
|
|
|
|
zip -ro9 $(distdir).mpkg.zip $(distdir).mpkg
|
|
|
|
rm -rf ngircd.dest $(distdir).mpkg
|
|
|
|
|
2001-12-11 22:53:04 +01:00
|
|
|
# -eof-
|