02
2002-01-02
alex
# ngIRCd -- The Next Generation IRC Daemon
03
2015-09-03
alex
# Copyright (c)2001-2015 Alexander Barton (alex@barton.de) and Contributors
05
2003-07-09
alex
# This program is free software; you can redistribute it and/or modify
06
2003-07-09
alex
# it under the terms of the GNU General Public License as published by
07
2003-07-09
alex
# the Free Software Foundation; either version 2 of the License, or
08
2003-07-09
alex
# (at your option) any later version.
09
2003-07-09
alex
# Please read the file COPYING, README and AUTHORS for more information.
12
2004-12-31
alex
SUBDIRS = doc src man contrib
14
2020-03-29
alex
EXTRA_DIST = README.md INSTALL.md autogen.sh configure.ng .clang_complete .mailmap
16
2013-03-27
alex
clean-local: osxpkg-clean
17
2004-05-11
alex
rm -f build-stamp*
19
2001-12-11
alex
maintainer-clean-local:
20
2002-03-10
alex
rm -rf autom4te.cache
21
2012-09-24
alex
rm -f Makefile.in Makefile aclocal.m4 configure configure.ac
22
2012-09-24
alex
rm -f ar-lib mkinstalldirs missing depcomp install-sh
23
2004-05-11
alex
rm -f config.log debian
25
2008-04-20
alex
testsuite:
26
2020-04-20
noreply
cd src/testsuite && ${MAKE} check
29
2020-04-20
noreply
cd src/ngircd && ${MAKE} lint
32
2020-04-20
noreply
cd doc && ${MAKE} srcdoc
34
2009-01-06
alex
have-xcodebuild:
35
2008-04-20
alex
@xcodebuild -project contrib/MacOSX/ngIRCd.xcodeproj -list \
36
2008-04-20
alex
>/dev/null 2>&1 \
37
2005-04-09
alex
|| ( echo; echo "Error: \"xcodebuild\" not found!"; echo; exit 1 )
39
2011-05-11
alex
have-packagemaker:
40
2011-05-11
alex
@packagemaker >/dev/null 2>&1; [ $$? -le 1 ] \
41
2011-05-11
alex
|| ( echo; echo "Error: \"packagemaker\" not found!"; echo; exit 2)
43
2009-01-06
alex
xcode: have-xcodebuild
44
2010-10-26
alex
rel=`git describe|sed -e 's/rel-//g'|sed -e 's/-/~/'`; \
45
2009-01-06
alex
def="GCC_PREPROCESSOR_DEFINITIONS=\"VERSION=\\\"$$rel\\\"\""; \
46
2009-01-06
alex
xcodebuild -project contrib/MacOSX/ngIRCd.xcodeproj -alltargets \
47
2009-01-06
alex
-configuration Default $$def build
49
2009-01-06
alex
xcode-clean: have-xcodebuild
50
2008-04-20
alex
xcodebuild -project contrib/MacOSX/ngIRCd.xcodeproj -alltargets \
51
2009-01-06
alex
-configuration Default clean
52
2009-01-06
alex
rm -fr contrib/MacOSX/build
54
2002-10-01
alex
rpm: distcheck
55
2002-10-01
alex
rpm -ta ngircd-*.tar.gz
58
2004-01-01
alex
[ -f debian/rules ] || ln -s contrib/Debian debian
59
2008-11-21
alex
dpkg-buildpackage -rfakeroot -i
61
2011-05-11
alex
osxpkg: have-packagemaker osxpkg-dest
62
2013-03-27
alex
cd contrib/MacOSX && packagemaker --no-recommend \
63
2011-05-11
alex
--doc ngIRCd.pmdoc \
64
2011-05-11
alex
--out ../../$(distdir).mpkg
65
2011-05-11
alex
rm -f $(distdir).mpkg.zip
66
2011-05-11
alex
zip -ro9 $(distdir).mpkg.zip $(distdir).mpkg
67
2020-04-20
noreply
${MAKE} osxpkg-clean
69
2013-03-27
alex
osxpkg-clean:
70
2014-01-04
alex
[ ! -r ngircd.dest ] || sudo -n rm -rf ngircd.dest
71
2011-05-11
alex
rm -rf ngircd.dest $(distdir).mpkg
73
2013-03-27
alex
osxpkg-dest: have-xcodebuild osxpkg-clean clean
74
2008-08-12
alex
./configure --prefix=/opt/ngircd
75
2020-04-20
noreply
${MAKE} xcode
76
2020-04-20
noreply
${MAKE} -C contrib/MacOSX de.barton.ngircd.plist
77
2008-08-12
alex
mkdir -p ngircd.dest/opt/ngircd/sbin
78
2020-04-20
noreply
DESTDIR="$$PWD/ngircd.dest" ${MAKE} -C doc install
79
2020-04-20
noreply
DESTDIR="$$PWD/ngircd.dest" ${MAKE} -C contrib install
80
2020-04-20
noreply
DESTDIR="$$PWD/ngircd.dest" ${MAKE} -C man install
81
2008-08-12
alex
cp contrib/MacOSX/build/Default/ngIRCd \
82
2008-08-12
alex
ngircd.dest/opt/ngircd/sbin/ngircd
83
2008-08-12
alex
rm ngircd.dest/opt/ngircd/etc/ngircd.conf
84
2008-08-12
alex
echo "Have a nice day IRCing!" >ngircd.dest/opt/ngircd/etc/ngircd.motd
85
2008-08-12
alex
chmod -R a-s,og-w,a+rX ngircd.dest
86
2013-03-27
alex
sudo chown -R root:wheel ngircd.dest
88
2013-03-27
alex
.PHONY: deb have-packagemaker have-xcodebuild lint osxpkg osxpkg-clean \
89
2013-03-27
alex
osxpkg-dest rpm srcdoc testsuite xcode xcode-clean