Makefile.am 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. #
  2. # ngIRCd -- The Next Generation IRC Daemon
  3. # Copyright (c)2001-2012 Alexander Barton (alex@barton.de) and Contributors
  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. .tmpl:
  12. sed \
  13. -e s@:ETCDIR:@${sysconfdir}@ \
  14. <$< >$@
  15. SUFFIXES = .tmpl
  16. static_docs = \
  17. Bopm.txt \
  18. Capabilities.txt \
  19. FAQ.txt \
  20. GIT.txt \
  21. HowToRelease.txt \
  22. Modes.txt \
  23. PAM.txt \
  24. Platforms.txt \
  25. Protocol.txt \
  26. README-AUX.txt \
  27. README-BeOS.txt \
  28. README-Interix.txt \
  29. RFC.txt \
  30. Services.txt \
  31. SSL.txt
  32. doc_templates = sample-ngircd.conf.tmpl
  33. generated_docs = sample-ngircd.conf
  34. toplevel_docs = ../AUTHORS ../COPYING ../ChangeLog ../INSTALL ../NEWS ../README
  35. SUBDIRS = src
  36. EXTRA_DIST = $(static_docs) $(doc_templates)
  37. CLEANFILES = $(generated_docs)
  38. maintainer-clean-local:
  39. rm -f Makefile Makefile.in
  40. all: $(generated_docs)
  41. install-data-hook: $(static_docs) $(toplevel_docs) $(generated_docs)
  42. $(mkinstalldirs) $(DESTDIR)$(sysconfdir)
  43. if [ ! -f $(DESTDIR)$(sysconfdir)/ngircd.conf ]; then \
  44. $(INSTALL) -m 600 -c sample-ngircd.conf $(DESTDIR)$(sysconfdir)/ngircd.conf; \
  45. fi
  46. $(mkinstalldirs) $(DESTDIR)$(docdir)
  47. for f in $(static_docs) $(toplevel_docs); do \
  48. $(INSTALL) -m 644 -c $(srcdir)/$$f $(DESTDIR)$(docdir)/; \
  49. done
  50. for f in $(generated_docs); do \
  51. $(INSTALL) -m 644 -c $$f $(DESTDIR)$(docdir)/; \
  52. done
  53. uninstall-hook:
  54. rm -rf $(DESTDIR)$(docdir)
  55. srcdoc:
  56. make -C src srcdoc
  57. # -eof-