Makefile.am 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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. AUTOMAKE_OPTIONS = gnu
  12. SUBDIRS = doc src man contrib
  13. clean-local:
  14. rm -f build-stamp*
  15. rm -rf ngircd.dest
  16. maintainer-clean-local:
  17. rm -rf autom4te.cache
  18. rm -f Makefile.in Makefile aclocal.m4 configure
  19. rm -f mkinstalldirs missing depcomp install-sh
  20. rm -f config.log debian
  21. testsuite:
  22. make -C src/testsuite check
  23. lint:
  24. make -C src/ngircd lint
  25. srcdoc:
  26. make -C doc srcdoc
  27. have-xcodebuild:
  28. @xcodebuild -project contrib/MacOSX/ngIRCd.xcodeproj -list \
  29. >/dev/null 2>&1 \
  30. || ( echo; echo "Error: \"xcodebuild\" not found!"; echo; exit 1 )
  31. xcode: have-xcodebuild
  32. rel=`grep AC_INIT configure.in | cut -d' ' -f2 | cut -d')' -f1`; \
  33. def="GCC_PREPROCESSOR_DEFINITIONS=\"VERSION=\\\"$$rel\\\"\""; \
  34. xcodebuild -project contrib/MacOSX/ngIRCd.xcodeproj -alltargets \
  35. -configuration Default $$def build
  36. xcode-clean: have-xcodebuild
  37. xcodebuild -project contrib/MacOSX/ngIRCd.xcodeproj -alltargets \
  38. -configuration Default clean
  39. rm -fr contrib/MacOSX/build
  40. rpm: distcheck
  41. rpm -ta ngircd-*.tar.gz
  42. deb:
  43. [ -f debian/rules ] || ln -s contrib/Debian debian
  44. dpkg-buildpackage -rfakeroot -i
  45. osxpkg: have-xcodebuild
  46. @packagemaker >/dev/null 2>&1; [ $$? -le 1 ] \
  47. || ( echo; echo "Error: \"packagemaker\" not found!"; echo; exit 2)
  48. make clean
  49. ./configure --prefix=/opt/ngircd
  50. make xcode
  51. make -C contrib/MacOSX de.barton.ngircd.plist
  52. mkdir -p ngircd.dest/opt/ngircd/sbin
  53. DESTDIR="$$PWD/ngircd.dest" make -C doc install
  54. DESTDIR="$$PWD/ngircd.dest" make -C contrib install
  55. DESTDIR="$$PWD/ngircd.dest" make -C man install
  56. cp contrib/MacOSX/build/Default/ngIRCd \
  57. ngircd.dest/opt/ngircd/sbin/ngircd
  58. rm ngircd.dest/opt/ngircd/etc/ngircd.conf
  59. echo "Have a nice day IRCing!" >ngircd.dest/opt/ngircd/etc/ngircd.motd
  60. chmod -R a-s,og-w,a+rX ngircd.dest
  61. cd contrib/MacOSX && packagemaker \
  62. --doc ngIRCd.pmdoc \
  63. --out ../../$(distdir).mpkg
  64. rm -f $(distdir).mpkg.zip
  65. zip -ro9 $(distdir).mpkg.zip $(distdir).mpkg
  66. rm -rf ngircd.dest $(distdir).mpkg
  67. # -eof-