2002-01-02 03:52:09 +01:00
|
|
|
#
|
|
|
|
# ngIRCd -- The Next Generation IRC Daemon
|
2013-03-27 13:09:23 +01:00
|
|
|
# Copyright (c)2001-2013 Alexander Barton (alex@barton.de) and Contributors
|
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
|
|
|
|
2012-09-24 17:50:32 +02:00
|
|
|
EXTRA_DIST = autogen.sh configure.ng .mailmap
|
2012-09-24 14:34:16 +02:00
|
|
|
|
2013-03-27 13:09:23 +01:00
|
|
|
clean-local: osxpkg-clean
|
2004-05-11 02:32:31 +02:00
|
|
|
rm -f build-stamp*
|
|
|
|
|
2001-12-11 22:53:04 +01:00
|
|
|
maintainer-clean-local:
|
2002-03-10 16:40:26 +01:00
|
|
|
rm -rf autom4te.cache
|
2012-09-24 20:40:31 +02:00
|
|
|
rm -f Makefile.in Makefile aclocal.m4 configure configure.ac
|
2012-09-24 20:39:06 +02:00
|
|
|
rm -f ar-lib 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:
|
2012-09-27 01:11:01 +02:00
|
|
|
cd src/testsuite && make check
|
2008-04-20 14:52:00 +02:00
|
|
|
|
2002-03-25 20:39:48 +01:00
|
|
|
lint:
|
2012-09-27 01:11:01 +02:00
|
|
|
cd src/ngircd && make lint
|
2002-03-25 20:39:48 +01:00
|
|
|
|
2005-04-09 14:27:40 +02:00
|
|
|
srcdoc:
|
2012-09-27 01:11:01 +02:00
|
|
|
cd doc && make 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
|
|
|
|
2011-05-12 00:21:18 +02:00
|
|
|
have-packagemaker:
|
|
|
|
@packagemaker >/dev/null 2>&1; [ $$? -le 1 ] \
|
|
|
|
|| ( echo; echo "Error: \"packagemaker\" not found!"; echo; exit 2)
|
|
|
|
|
2009-01-06 16:01:52 +01:00
|
|
|
xcode: have-xcodebuild
|
2010-10-26 15:09:01 +02:00
|
|
|
rel=`git describe|sed -e 's/rel-//g'|sed -e 's/-/~/'`; \
|
2009-01-06 16:01:52 +01:00
|
|
|
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
|
|
|
|
2011-05-12 00:21:18 +02:00
|
|
|
osxpkg: have-packagemaker osxpkg-dest
|
2013-03-27 13:09:23 +01:00
|
|
|
cd contrib/MacOSX && packagemaker --no-recommend \
|
2011-05-12 00:21:18 +02:00
|
|
|
--doc ngIRCd.pmdoc \
|
|
|
|
--out ../../$(distdir).mpkg
|
|
|
|
rm -f $(distdir).mpkg.zip
|
|
|
|
zip -ro9 $(distdir).mpkg.zip $(distdir).mpkg
|
2013-03-27 13:09:23 +01:00
|
|
|
make osxpkg-clean
|
|
|
|
|
|
|
|
osxpkg-clean:
|
2014-01-05 00:12:00 +01:00
|
|
|
[ ! -r ngircd.dest ] || sudo -n rm -rf ngircd.dest
|
2011-05-12 00:21:18 +02:00
|
|
|
rm -rf ngircd.dest $(distdir).mpkg
|
|
|
|
|
2013-03-27 13:09:23 +01:00
|
|
|
osxpkg-dest: have-xcodebuild osxpkg-clean clean
|
2008-08-12 17:30:38 +02:00
|
|
|
./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
|
2013-03-27 13:09:23 +01:00
|
|
|
sudo chown -R root:wheel ngircd.dest
|
2011-05-12 00:21:18 +02:00
|
|
|
|
2013-03-27 13:09:23 +01:00
|
|
|
.PHONY: deb have-packagemaker have-xcodebuild lint osxpkg osxpkg-clean \
|
|
|
|
osxpkg-dest rpm srcdoc testsuite xcode xcode-clean
|
2008-08-12 17:30:38 +02:00
|
|
|
|
2001-12-11 22:53:04 +01:00
|
|
|
# -eof-
|