Blame


1 64218c16 2002-01-02 alex #
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
4 64218c16 2002-01-02 alex #
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.
10 64218c16 2002-01-02 alex #
11 f4ade537 2001-12-11 alex
12 ed94d5d5 2004-12-31 alex SUBDIRS = doc src man contrib
13 f4ade537 2001-12-11 alex
14 61ac8be2 2020-03-29 alex EXTRA_DIST = README.md INSTALL.md autogen.sh configure.ng .clang_complete .mailmap
15 8cfb9104 2012-09-24 alex
16 7f9bce70 2013-03-27 alex clean-local: osxpkg-clean
17 bf21dd15 2004-05-11 alex rm -f build-stamp*
18 bf21dd15 2004-05-11 alex
19 f4ade537 2001-12-11 alex maintainer-clean-local:
20 81889df4 2002-03-10 alex rm -rf autom4te.cache
21 e65a35e9 2012-09-24 alex rm -f Makefile.in Makefile aclocal.m4 configure configure.ac
22 78d189fb 2012-09-24 alex rm -f ar-lib mkinstalldirs missing depcomp install-sh
23 bf21dd15 2004-05-11 alex rm -f config.log debian
24 f4ade537 2001-12-11 alex
25 012aeca3 2008-04-20 alex testsuite:
26 1fc54ebe 2020-04-20 noreply cd src/testsuite && ${MAKE} check
27 012aeca3 2008-04-20 alex
28 d58fe2f1 2002-03-25 alex lint:
29 1fc54ebe 2020-04-20 noreply cd src/ngircd && ${MAKE} lint
30 d58fe2f1 2002-03-25 alex
31 43ba1bc8 2005-04-09 alex srcdoc:
32 1fc54ebe 2020-04-20 noreply cd doc && ${MAKE} srcdoc
33 43ba1bc8 2005-04-09 alex
34 5468ba37 2009-01-06 alex have-xcodebuild:
35 c4a505d3 2008-04-20 alex @xcodebuild -project contrib/MacOSX/ngIRCd.xcodeproj -list \
36 c4a505d3 2008-04-20 alex >/dev/null 2>&1 \
37 43ba1bc8 2005-04-09 alex || ( echo; echo "Error: \"xcodebuild\" not found!"; echo; exit 1 )
38 5468ba37 2009-01-06 alex
39 dd7d64f5 2011-05-11 alex have-packagemaker:
40 dd7d64f5 2011-05-11 alex @packagemaker >/dev/null 2>&1; [ $$? -le 1 ] \
41 dd7d64f5 2011-05-11 alex || ( echo; echo "Error: \"packagemaker\" not found!"; echo; exit 2)
42 dd7d64f5 2011-05-11 alex
43 5468ba37 2009-01-06 alex xcode: have-xcodebuild
44 a4de27de 2010-10-26 alex rel=`git describe|sed -e 's/rel-//g'|sed -e 's/-/~/'`; \
45 5468ba37 2009-01-06 alex def="GCC_PREPROCESSOR_DEFINITIONS=\"VERSION=\\\"$$rel\\\"\""; \
46 5468ba37 2009-01-06 alex xcodebuild -project contrib/MacOSX/ngIRCd.xcodeproj -alltargets \
47 5468ba37 2009-01-06 alex -configuration Default $$def build
48 5468ba37 2009-01-06 alex
49 5468ba37 2009-01-06 alex xcode-clean: have-xcodebuild
50 c4a505d3 2008-04-20 alex xcodebuild -project contrib/MacOSX/ngIRCd.xcodeproj -alltargets \
51 5468ba37 2009-01-06 alex -configuration Default clean
52 5468ba37 2009-01-06 alex rm -fr contrib/MacOSX/build
53 43ba1bc8 2005-04-09 alex
54 ab2abee1 2002-10-01 alex rpm: distcheck
55 ab2abee1 2002-10-01 alex rpm -ta ngircd-*.tar.gz
56 ab2abee1 2002-10-01 alex
57 6e03626e 2003-07-09 alex deb:
58 ad07c94c 2004-01-01 alex [ -f debian/rules ] || ln -s contrib/Debian debian
59 97d97ef5 2008-11-21 alex dpkg-buildpackage -rfakeroot -i
60 6e03626e 2003-07-09 alex
61 dd7d64f5 2011-05-11 alex osxpkg: have-packagemaker osxpkg-dest
62 7f9bce70 2013-03-27 alex cd contrib/MacOSX && packagemaker --no-recommend \
63 dd7d64f5 2011-05-11 alex --doc ngIRCd.pmdoc \
64 dd7d64f5 2011-05-11 alex --out ../../$(distdir).mpkg
65 dd7d64f5 2011-05-11 alex rm -f $(distdir).mpkg.zip
66 dd7d64f5 2011-05-11 alex zip -ro9 $(distdir).mpkg.zip $(distdir).mpkg
67 1fc54ebe 2020-04-20 noreply ${MAKE} osxpkg-clean
68 7f9bce70 2013-03-27 alex
69 7f9bce70 2013-03-27 alex osxpkg-clean:
70 7b358a57 2014-01-04 alex [ ! -r ngircd.dest ] || sudo -n rm -rf ngircd.dest
71 dd7d64f5 2011-05-11 alex rm -rf ngircd.dest $(distdir).mpkg
72 dd7d64f5 2011-05-11 alex
73 7f9bce70 2013-03-27 alex osxpkg-dest: have-xcodebuild osxpkg-clean clean
74 707cc42d 2008-08-12 alex ./configure --prefix=/opt/ngircd
75 1fc54ebe 2020-04-20 noreply ${MAKE} xcode
76 1fc54ebe 2020-04-20 noreply ${MAKE} -C contrib/MacOSX de.barton.ngircd.plist
77 707cc42d 2008-08-12 alex mkdir -p ngircd.dest/opt/ngircd/sbin
78 1fc54ebe 2020-04-20 noreply DESTDIR="$$PWD/ngircd.dest" ${MAKE} -C doc install
79 1fc54ebe 2020-04-20 noreply DESTDIR="$$PWD/ngircd.dest" ${MAKE} -C contrib install
80 1fc54ebe 2020-04-20 noreply DESTDIR="$$PWD/ngircd.dest" ${MAKE} -C man install
81 707cc42d 2008-08-12 alex cp contrib/MacOSX/build/Default/ngIRCd \
82 707cc42d 2008-08-12 alex ngircd.dest/opt/ngircd/sbin/ngircd
83 707cc42d 2008-08-12 alex rm ngircd.dest/opt/ngircd/etc/ngircd.conf
84 707cc42d 2008-08-12 alex echo "Have a nice day IRCing!" >ngircd.dest/opt/ngircd/etc/ngircd.motd
85 707cc42d 2008-08-12 alex chmod -R a-s,og-w,a+rX ngircd.dest
86 7f9bce70 2013-03-27 alex sudo chown -R root:wheel ngircd.dest
87 707cc42d 2008-08-12 alex
88 7f9bce70 2013-03-27 alex .PHONY: deb have-packagemaker have-xcodebuild lint osxpkg osxpkg-clean \
89 7f9bce70 2013-03-27 alex osxpkg-dest rpm srcdoc testsuite xcode xcode-clean
90 dd7d64f5 2011-05-11 alex
91 f4ade537 2001-12-11 alex # -eof-