Makefile.am 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. SUBDIRS = ngIRCd.xcodeproj ngIRCd.pmdoc
  12. EXTRA_DIST = de.barton.ngircd.plist.tmpl config.h preinstall.sh postinstall.sh
  13. SUFFIXES = .tmpl .
  14. .tmpl:
  15. sed \
  16. -e s@:SBINDIR:@${sbindir}@ \
  17. <$< >$@
  18. install-data-local:
  19. [ `uname -s` != "Darwin" ] || make install-sys-darwin
  20. install-sys-darwin:
  21. @if [ `id -u` -eq 0 ]; then \
  22. make install-sys-darwin-root; \
  23. else \
  24. echo; \
  25. echo " ** NOTE: Not installing with root privileges, so the LaunchDaemon script"; \
  26. echo " ** \"/Library/LaunchDaemons/de.barton.ngircd.plist\" can't be installed/updated!"; \
  27. echo; \
  28. fi
  29. install-sys-darwin-root: de.barton.ngircd.plist
  30. install -d -m 755 -o root -g wheel $(DESTDIR)/Library/LaunchDaemons
  31. install -c -m 644 -b -o root -g wheel de.barton.ngircd.plist \
  32. $(DESTDIR)/Library/LaunchDaemons/de.barton.ngircd.plist
  33. @echo
  34. @echo " ** \"/Library/LaunchDaemons/de.barton.ngircd.plist\" has been installed,"
  35. @echo " ** but is disabled. Use launchctl(8) to enable/run ngIRCd on Darwin/Mac OS X."
  36. @echo
  37. clean-local:
  38. rm -rf build
  39. rm -f de.barton.ngircd.plist
  40. maintainer-clean-local:
  41. rm -f Makefile Makefile.in
  42. # -eof-