Makefile.am 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. #
  2. # ngIRCd -- The Next Generation IRC Daemon
  3. # Copyright (c)2001-2011 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 = Bopm.txt FAQ.txt GIT.txt HowToRelease.txt Modes.txt PAM.txt \
  17. Platforms.txt Protocol.txt README-AUX.txt README-BeOS.txt \
  18. README-Interix.txt RFC.txt SSL.txt Services.txt
  19. doc_templates = sample-ngircd.conf.tmpl
  20. generated_docs = sample-ngircd.conf
  21. toplevel_docs = ../AUTHORS ../COPYING ../ChangeLog ../INSTALL ../NEWS ../README
  22. SUBDIRS = src
  23. EXTRA_DIST = $(static_docs) $(doc_templates)
  24. CLEANFILES = $(generated_docs)
  25. maintainer-clean-local:
  26. rm -f Makefile Makefile.in
  27. all: $(generated_docs)
  28. install-data-hook: $(static_docs) $(toplevel_docs) $(generated_docs)
  29. $(mkinstalldirs) $(DESTDIR)$(sysconfdir)
  30. if [ ! -f $(DESTDIR)$(sysconfdir)/ngircd.conf ]; then \
  31. $(INSTALL) -m 600 -c sample-ngircd.conf $(DESTDIR)$(sysconfdir)/ngircd.conf; \
  32. fi
  33. $(mkinstalldirs) $(DESTDIR)$(docdir)
  34. for f in $(static_docs) $(toplevel_docs); do \
  35. $(INSTALL) -m 644 -c $(srcdir)/$$f $(DESTDIR)$(docdir)/; \
  36. done
  37. for f in $(generated_docs); do \
  38. $(INSTALL) -m 644 -c $$f $(DESTDIR)$(docdir)/; \
  39. done
  40. uninstall-hook:
  41. rm -rf $(DESTDIR)$(docdir)
  42. srcdoc:
  43. make -C src srcdoc
  44. # -eof-