Makefile.am 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. # Makefile.am --- GNU Automake file to build Emacs-Guix
  2. # Copyright © 2016–2017 Alex Kost <alezost@gmail.com>
  3. # This file is part of Emacs-Guix.
  4. # Emacs-Guix is free software; you can redistribute it and/or modify
  5. # it under the terms of the GNU General Public License as published by
  6. # the Free Software Foundation, either version 3 of the License, or
  7. # (at your option) any later version.
  8. #
  9. # Emacs-Guix is distributed in the hope that it will be useful,
  10. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. # GNU General Public License for more details.
  13. #
  14. # You should have received a copy of the GNU General Public License
  15. # along with Emacs-Guix. If not, see <http://www.gnu.org/licenses/>.
  16. CLEANFILES =
  17. EXTRA_DIST = build-aux/build-env.el
  18. info_TEXINFOS = doc/emacs-guix.texi
  19. imagedir = $(pkgdatadir)/images
  20. dist_image_DATA = images/*.svg
  21. include elisp/local.mk
  22. SUBDIRS = scheme
  23. # Build "dir" file to make Emacs-Guix entry appear in the info top dir.
  24. doc/dir: doc/emacs-guix.info
  25. $(AM_V_GEN) install-info $< $@
  26. # Prepare html version of the manual (for github pages).
  27. # "--css-ref=/css/manual.css" can't be used because the styles are put
  28. # into "https://alezost.github.io/guix.el/css/". And since I don't want
  29. # to hardcode "guix.el" in the css-ref, the relative refs are used.
  30. TEXI2HTML = texi2any --info --html
  31. HTML_DIR = manual
  32. manual: doc/emacs-guix.texi
  33. test -d $(HTML_DIR) || mkdir $(HTML_DIR)
  34. $(TEXI2HTML) --css-ref="../../../css/manual.css" \
  35. --output=$(HTML_DIR)/html_node $<
  36. $(TEXI2HTML) --css-ref="../../css/manual.css" \
  37. --output=$(HTML_DIR)/emacs-guix.html --no-split $<
  38. clean-go:
  39. @cd scheme; make clean-go
  40. .PHONY: clean-go
  41. # Makefile.am ends here