2002-01-02 02:52:09 +00:00
|
|
|
#
|
|
|
|
# ngIRCd -- The Next Generation IRC Daemon
|
2011-05-11 22:21:18 +00:00
|
|
|
# Copyright (c)2001-2011 Alexander Barton (alex@barton.de) and Contributors
|
2002-01-02 02:52:09 +00:00
|
|
|
#
|
2003-07-09 21:16:33 +00: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 02:52:09 +00:00
|
|
|
#
|
2001-12-11 21:53:04 +00:00
|
|
|
|
|
|
|
AUTOMAKE_OPTIONS = gnu
|
|
|
|
|
2003-12-31 17:20:11 +00:00
|
|
|
SUBDIRS = doc src man contrib
|
2001-12-11 21:53:04 +00:00
|
|
|
|
2004-05-11 00:32:31 +00:00
|
|
|
clean-local:
|
|
|
|
rm -f build-stamp*
|
2008-08-12 15:30:38 +00:00
|
|
|
rm -rf ngircd.dest
|
2004-05-11 00:32:31 +00:00
|
|
|
|
2001-12-11 21:53:04 +00:00
|
|
|
maintainer-clean-local:
|
2002-03-10 15:40:26 +00:00
|
|
|
rm -rf autom4te.cache
|
2001-12-11 21:53:04 +00:00
|
|
|
rm -f Makefile.in Makefile aclocal.m4 configure
|
|
|
|
rm -f mkinstalldirs missing depcomp install-sh
|
2004-05-11 00:32:31 +00:00
|
|
|
rm -f config.log debian
|
2001-12-11 21:53:04 +00:00
|
|
|
|
2008-04-20 12:52:00 +00:00
|
|
|
testsuite:
|
|
|
|
make -C src/testsuite check
|
|
|
|
|
2002-03-25 19:39:48 +00:00
|
|
|
lint:
|
|
|
|
make -C src/ngircd lint
|
|
|
|
|
2005-04-09 12:27:40 +00:00
|
|
|
srcdoc:
|
2005-07-22 21:01:52 +00:00
|
|
|
make -C doc srcdoc
|
2005-04-09 12:27:40 +00:00
|
|
|
|
2009-01-06 15:01:52 +00:00
|
|
|
have-xcodebuild:
|
2008-04-20 12:50:46 +00:00
|
|
|
@xcodebuild -project contrib/MacOSX/ngIRCd.xcodeproj -list \
|
|
|
|
>/dev/null 2>&1 \
|
2005-04-09 12:27:40 +00:00
|
|
|
|| ( echo; echo "Error: \"xcodebuild\" not found!"; echo; exit 1 )
|
2009-01-06 15:01:52 +00:00
|
|
|
|
2011-05-11 22:21:18 +00:00
|
|
|
have-packagemaker:
|
|
|
|
@packagemaker >/dev/null 2>&1; [ $$? -le 1 ] \
|
|
|
|
|| ( echo; echo "Error: \"packagemaker\" not found!"; echo; exit 2)
|
|
|
|
|
2009-01-06 15:01:52 +00:00
|
|
|
xcode: have-xcodebuild
|
2010-10-26 13:09:01 +00:00
|
|
|
rel=`git describe|sed -e 's/rel-//g'|sed -e 's/-/~/'`; \
|
2009-01-06 15:01:52 +00: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 12:50:46 +00:00
|
|
|
xcodebuild -project contrib/MacOSX/ngIRCd.xcodeproj -alltargets \
|
2009-01-06 15:01:52 +00:00
|
|
|
-configuration Default clean
|
|
|
|
rm -fr contrib/MacOSX/build
|
2005-04-09 12:27:40 +00:00
|
|
|
|
2002-10-01 09:57:08 +00:00
|
|
|
rpm: distcheck
|
|
|
|
rpm -ta ngircd-*.tar.gz
|
|
|
|
|
2003-07-09 21:16:33 +00:00
|
|
|
deb:
|
2004-01-01 22:24:48 +00:00
|
|
|
[ -f debian/rules ] || ln -s contrib/Debian debian
|
2008-11-21 20:27:23 +00:00
|
|
|
dpkg-buildpackage -rfakeroot -i
|
2003-07-09 21:16:33 +00:00
|
|
|
|
2011-05-11 22:21:18 +00:00
|
|
|
osxpkg: have-packagemaker osxpkg-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
|
|
|
|
|
|
|
|
osxpkg-dest: have-xcodebuild clean
|
2008-08-12 15:30:38 +00: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
|
2011-05-11 22:21:18 +00:00
|
|
|
|
|
|
|
.PHONY: deb have-packagemaker have-xcodebuild lint osxpkg osxpkg-dest rpm \
|
|
|
|
srcdoc testsuite xcode xcode-clean
|
2008-08-12 15:30:38 +00:00
|
|
|
|
2001-12-11 21:53:04 +00:00
|
|
|
# -eof-
|