]> arthur.barton.de Git - ngircd-alex.git/blob - Makefile.am
Console log: output timestamp (seconds since start of daemon)
[ngircd-alex.git] / Makefile.am
1 #
2 # ngIRCd -- The Next Generation IRC Daemon
3 # Copyright (c)2001-2008 Alexander Barton (alex@barton.de)
4 #
5 # This program is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 2 of the License, or
8 # (at your option) any later version.
9 # Please read the file COPYING, README and AUTHORS for more information.
10 #
11
12 AUTOMAKE_OPTIONS = gnu
13
14 SUBDIRS = doc src man contrib
15
16 clean-local:
17         rm -f build-stamp*
18         rm -rf ngircd.dest
19
20 maintainer-clean-local:
21         rm -rf autom4te.cache
22         rm -f Makefile.in Makefile aclocal.m4 configure
23         rm -f mkinstalldirs missing depcomp install-sh
24         rm -f config.log debian
25
26 testsuite:
27         make -C src/testsuite check
28
29 lint:
30         make -C src/ngircd lint
31
32 srcdoc:
33         make -C doc srcdoc
34
35 xcode:
36         @xcodebuild -project contrib/MacOSX/ngIRCd.xcodeproj -list \
37          >/dev/null 2>&1 \
38          || ( echo; echo "Error: \"xcodebuild\" not found!"; echo; exit 1 )
39         xcodebuild -project contrib/MacOSX/ngIRCd.xcodeproj -alltargets \
40          -buildstyle Development
41
42 rpm: distcheck
43         rpm -ta ngircd-*.tar.gz
44
45 deb:
46         [ -f debian/rules ] || ln -s contrib/Debian debian
47         dpkg-buildpackage -rfakeroot
48
49 osxpkg:
50         @packagemaker >/dev/null 2>&1; [ $$? -ge 1 ] \
51          || ( echo; echo "Error: \"packagemaker\" not found!"; echo; exit 2)
52         make clean
53         ./configure --prefix=/opt/ngircd
54         make xcode
55         make -C contrib/MacOSX de.barton.ngircd.plist
56         mkdir -p ngircd.dest/opt/ngircd/sbin
57         DESTDIR="$$PWD/ngircd.dest" make -C doc install
58         DESTDIR="$$PWD/ngircd.dest" make -C contrib install
59         DESTDIR="$$PWD/ngircd.dest" make -C man install
60         cp contrib/MacOSX/build/Default/ngIRCd \
61          ngircd.dest/opt/ngircd/sbin/ngircd
62         rm ngircd.dest/opt/ngircd/etc/ngircd.conf
63         echo "Have a nice day IRCing!" >ngircd.dest/opt/ngircd/etc/ngircd.motd
64         chmod -R a-s,og-w,a+rX ngircd.dest
65         cd contrib/MacOSX && packagemaker \
66          --doc ngIRCd.pmdoc \
67          --out ../../$(distdir).mpkg
68         rm -f $(distdir).mpkg.zip
69         zip -ro9 $(distdir).mpkg.zip $(distdir).mpkg
70         rm -rf ngircd.dest $(distdir).mpkg
71
72 # -eof-