2 64218c16 2002-01-02 alex # ngIRCd -- The Next Generation IRC Daemon
3 57cd41d2 2015-09-03 alex # Copyright (c)2001-2015 Alexander Barton (alex@barton.de) and Contributors
5 6e03626e 2003-07-09 alex # This program is free software; you can redistribute it and/or modify
6 6e03626e 2003-07-09 alex # it under the terms of the GNU General Public License as published by
7 6e03626e 2003-07-09 alex # the Free Software Foundation; either version 2 of the License, or
8 6e03626e 2003-07-09 alex # (at your option) any later version.
9 6e03626e 2003-07-09 alex # Please read the file COPYING, README and AUTHORS for more information.
12 f4ade537 2001-12-11 alex AUTOMAKE_OPTIONS = gnu
14 ed94d5d5 2003-12-31 alex SUBDIRS = doc src man contrib
16 57cd41d2 2015-09-03 alex EXTRA_DIST = autogen.sh configure.ng .clang_complete .mailmap
18 7f9bce70 2013-03-27 alex clean-local: osxpkg-clean
19 bf21dd15 2004-05-11 alex rm -f build-stamp*
21 f4ade537 2001-12-11 alex maintainer-clean-local:
22 81889df4 2002-03-10 alex rm -rf autom4te.cache
23 e65a35e9 2012-09-24 alex rm -f Makefile.in Makefile aclocal.m4 configure configure.ac
24 78d189fb 2012-09-24 alex rm -f ar-lib mkinstalldirs missing depcomp install-sh
25 bf21dd15 2004-05-11 alex rm -f config.log debian
28 114644cd 2012-09-26 alex cd src/testsuite && make check
31 114644cd 2012-09-26 alex cd src/ngircd && make lint
34 114644cd 2012-09-26 alex cd doc && make srcdoc
36 5468ba37 2009-01-06 alex have-xcodebuild:
37 c4a505d3 2008-04-20 alex @xcodebuild -project contrib/MacOSX/ngIRCd.xcodeproj -list \
38 c4a505d3 2008-04-20 alex >/dev/null 2>&1 \
39 43ba1bc8 2005-04-09 alex || ( echo; echo "Error: \"xcodebuild\" not found!"; echo; exit 1 )
41 dd7d64f5 2011-05-11 alex have-packagemaker:
42 dd7d64f5 2011-05-11 alex @packagemaker >/dev/null 2>&1; [ $$? -le 1 ] \
43 dd7d64f5 2011-05-11 alex || ( echo; echo "Error: \"packagemaker\" not found!"; echo; exit 2)
45 5468ba37 2009-01-06 alex xcode: have-xcodebuild
46 a4de27de 2010-10-26 alex rel=`git describe|sed -e 's/rel-//g'|sed -e 's/-/~/'`; \
47 5468ba37 2009-01-06 alex def="GCC_PREPROCESSOR_DEFINITIONS=\"VERSION=\\\"$$rel\\\"\""; \
48 5468ba37 2009-01-06 alex xcodebuild -project contrib/MacOSX/ngIRCd.xcodeproj -alltargets \
49 5468ba37 2009-01-06 alex -configuration Default $$def build
51 5468ba37 2009-01-06 alex xcode-clean: have-xcodebuild
52 c4a505d3 2008-04-20 alex xcodebuild -project contrib/MacOSX/ngIRCd.xcodeproj -alltargets \
53 5468ba37 2009-01-06 alex -configuration Default clean
54 5468ba37 2009-01-06 alex rm -fr contrib/MacOSX/build
56 ab2abee1 2002-10-01 alex rpm: distcheck
57 ab2abee1 2002-10-01 alex rpm -ta ngircd-*.tar.gz
60 ad07c94c 2004-01-01 alex [ -f debian/rules ] || ln -s contrib/Debian debian
61 97d97ef5 2008-11-21 alex dpkg-buildpackage -rfakeroot -i
63 dd7d64f5 2011-05-11 alex osxpkg: have-packagemaker osxpkg-dest
64 7f9bce70 2013-03-27 alex cd contrib/MacOSX && packagemaker --no-recommend \
65 dd7d64f5 2011-05-11 alex --doc ngIRCd.pmdoc \
66 dd7d64f5 2011-05-11 alex --out ../../$(distdir).mpkg
67 dd7d64f5 2011-05-11 alex rm -f $(distdir).mpkg.zip
68 dd7d64f5 2011-05-11 alex zip -ro9 $(distdir).mpkg.zip $(distdir).mpkg
69 7f9bce70 2013-03-27 alex make osxpkg-clean
71 7f9bce70 2013-03-27 alex osxpkg-clean:
72 7b358a57 2014-01-04 alex [ ! -r ngircd.dest ] || sudo -n rm -rf ngircd.dest
73 dd7d64f5 2011-05-11 alex rm -rf ngircd.dest $(distdir).mpkg
75 7f9bce70 2013-03-27 alex osxpkg-dest: have-xcodebuild osxpkg-clean clean
76 707cc42d 2008-08-12 alex ./configure --prefix=/opt/ngircd
78 707cc42d 2008-08-12 alex make -C contrib/MacOSX de.barton.ngircd.plist
79 707cc42d 2008-08-12 alex mkdir -p ngircd.dest/opt/ngircd/sbin
80 707cc42d 2008-08-12 alex DESTDIR="$$PWD/ngircd.dest" make -C doc install
81 707cc42d 2008-08-12 alex DESTDIR="$$PWD/ngircd.dest" make -C contrib install
82 707cc42d 2008-08-12 alex DESTDIR="$$PWD/ngircd.dest" make -C man install
83 707cc42d 2008-08-12 alex cp contrib/MacOSX/build/Default/ngIRCd \
84 707cc42d 2008-08-12 alex ngircd.dest/opt/ngircd/sbin/ngircd
85 707cc42d 2008-08-12 alex rm ngircd.dest/opt/ngircd/etc/ngircd.conf
86 707cc42d 2008-08-12 alex echo "Have a nice day IRCing!" >ngircd.dest/opt/ngircd/etc/ngircd.motd
87 707cc42d 2008-08-12 alex chmod -R a-s,og-w,a+rX ngircd.dest
88 7f9bce70 2013-03-27 alex sudo chown -R root:wheel ngircd.dest
90 7f9bce70 2013-03-27 alex .PHONY: deb have-packagemaker have-xcodebuild lint osxpkg osxpkg-clean \
91 7f9bce70 2013-03-27 alex osxpkg-dest rpm srcdoc testsuite xcode xcode-clean