X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=ngircd-alex.git;a=blobdiff_plain;f=Makefile.am;h=701bf6b4d1481973ad68c95f506ad3a84cbdc6f7;hp=dfd9ca659ffe925712bb7d2eddae3e85bf0fbf2c;hb=0e4e22a7a671d1e8efbc44bffd80062191f75c38;hpb=64218c161c7796e6673c65af1ecb74fc90537fde diff --git a/Makefile.am b/Makefile.am index dfd9ca65..701bf6b4 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,42 +1,72 @@ # # ngIRCd -- The Next Generation IRC Daemon -# Copyright (c)2001,2002 by Alexander Barton (alex@barton.de) +# Copyright (c)2001-2008 Alexander Barton (alex@barton.de) # -# Dieses Programm ist freie Software. Sie koennen es unter den Bedingungen -# der GNU General Public License (GPL), wie von der Free Software Foundation -# herausgegeben, weitergeben und/oder modifizieren, entweder unter Version 2 -# der Lizenz oder (wenn Sie es wuenschen) jeder spaeteren Version. -# Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste -# der an ngIRCd beteiligten Autoren finden Sie in der Datei AUTHORS. -# -# $Id: Makefile.am,v 1.5 2002/01/02 02:52:09 alex Exp $ -# -# $Log: Makefile.am,v $ -# Revision 1.5 2002/01/02 02:52:09 alex -# - Copyright-Texte angepasst ;-) -# -# Revision 1.4 2001/12/31 02:20:20 alex -# - Unterverzeichnis "doc" aufgenommen. -# -# Revision 1.3 2001/12/30 19:24:28 alex -# - acconfig.h in die "noinst_HEADERS" aufgenommen. -# -# Revision 1.2 2001/12/12 17:21:58 alex -# - Projektdatei fuer den Mac OS X Project Builder erstellt. -# -# Revision 1.1.1.1 2001/12/11 21:53:04 alex -# Imported sources to CVS. +# 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. # AUTOMAKE_OPTIONS = gnu -SUBDIRS = doc MacOSX src +SUBDIRS = doc src man contrib -noinst_HEADERS = acconfig.h +clean-local: + rm -f build-stamp* + rm -rf ngircd.dest maintainer-clean-local: + rm -rf autom4te.cache rm -f Makefile.in Makefile aclocal.m4 configure rm -f mkinstalldirs missing depcomp install-sh - rm -f config.log + rm -f config.log debian + +testsuite: + make -C src/testsuite check + +lint: + make -C src/ngircd lint + +srcdoc: + make -C doc srcdoc + +xcode: + @xcodebuild -project contrib/MacOSX/ngIRCd.xcodeproj -list \ + >/dev/null 2>&1 \ + || ( echo; echo "Error: \"xcodebuild\" not found!"; echo; exit 1 ) + xcodebuild -project contrib/MacOSX/ngIRCd.xcodeproj -alltargets \ + -buildstyle Development + +rpm: distcheck + rpm -ta ngircd-*.tar.gz + +deb: + [ -f debian/rules ] || ln -s contrib/Debian debian + dpkg-buildpackage -rfakeroot -i + +osxpkg: + @packagemaker >/dev/null 2>&1; [ $$? -ge 1 ] \ + || ( echo; echo "Error: \"packagemaker\" not found!"; echo; exit 2) + make clean + ./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 + 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 # -eof-