Makefile.am 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. ## Copyright © 2015, 2016 Christopher Allan Webber <cwebber@dustycloud.org>
  2. ## parts of this automake recipe borrowed from:
  3. ## GNU Guix --- Functional package management for GNU
  4. ## Copyright © 2012, 2013, 2014, 2015 Ludovic Courtès <ludo@gnu.org>
  5. ## Copyright © 2013 Andreas Enge <andreas@enge.fr>
  6. ## Copyright © 2015 Alex Kost <alezost@gmail.com>
  7. ## Sly
  8. ## Copyright (C) 2013, 2014 David Thompson <dthompson2@worcester.edu>
  9. ## This program is free software: you can redistribute it and/or
  10. ## modify it under the terms of the GNU General Public License as
  11. ## published by the Free Software Foundation, either version 3 of the
  12. ## License, or (at your option) any later version.
  13. ##
  14. ## This program is distributed in the hope that it will be useful, but
  15. ## WITHOUT ANY WARRANTY; without even the implied warranty of
  16. ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  17. ## General Public License for more details.
  18. ##
  19. ## You should have received a copy of the GNU General Public License
  20. ## along with this program. If not, see
  21. ## <http://www.gnu.org/licenses/>.
  22. GOBJECTS = $(SOURCES:%.scm=%.go)
  23. nobase_mod_DATA = $(SOURCES)
  24. nobase_go_DATA = $(GOBJECTS)
  25. # Make sure source files are installed first, so that the mtime of
  26. # installed compiled files is greater than that of installed source
  27. # files. See
  28. # <http://lists.gnu.org/archive/html/guile-devel/2010-07/msg00125.html>
  29. # for details.
  30. guile_install_go_files = install-nobase_goDATA
  31. $(guile_install_go_files): install-nobase_modDATA
  32. GUILE_WARNINGS = -Wunbound-variable -Warity-mismatch -Wformat
  33. SUFFIXES = .scm .go
  34. .scm.go:
  35. $(AM_V_GEN)$(top_builddir)/pre-inst-env $(GUILE_TOOLS) compile $(GUILE_WARNINGS) -o "$@" "$<"
  36. moddir=$(prefix)/share/guile/site/2.0
  37. godir=$(libdir)/guile/2.0/ccache
  38. SOURCES = \
  39. mudsync/command.scm \
  40. mudsync/container.scm \
  41. mudsync/game-master.scm \
  42. mudsync/gameobj.scm \
  43. mudsync/networking.scm \
  44. mudsync/parser.scm \
  45. mudsync/player.scm \
  46. mudsync/room.scm \
  47. mudsync/run-game.scm \
  48. mudsync/package-config.scm \
  49. mudsync/utils.scm \
  50. mudsync/contrib/mime-types.scm \
  51. mudsync.scm
  52. # TESTS = \
  53. # tests/test-agenda.scm \
  54. # tests/test-actors.scm
  55. TEST_EXTENSIONS = .scm
  56. SCM_LOG_COMPILER = $(GUILE)
  57. AM_SCM_LOG_FLAGS = --no-auto-compile -L $(top_srcdir)
  58. CLEANFILES = \
  59. $(GOBJECTS) \
  60. $(TESTS:tests/%.scm=%.log) \
  61. *.log *.tar.gz
  62. EXTRA_DIST = \
  63. $(SOURCES) \
  64. $(TESTS) \
  65. $(NOCOMP_SOURCES) \
  66. COPYING \
  67. worlds/bricabrac.scm \
  68. worlds/goblin-hq.scm \
  69. data/web-static/css/main.css \
  70. data/web-static/js/mudsync.js \
  71. pre-inst-env.in
  72. ## This isn't going to help us much till after the jam ;)
  73. # ## Make changelog on demand
  74. #
  75. # dist-hook: gen-ChangeLog
  76. # # gen-AUTHORS might be useful to borrow from Guix
  77. #
  78. # gen-ChangeLog:
  79. # if test -d .git; then \
  80. # $(top_srcdir)/build-aux/gitlog-to-changelog --since 2015-11-28 \
  81. # > $(distdir)/cl-t; \
  82. # rm -f $(distdir)/ChangeLog; \
  83. # mv $(distdir)/cl-t $(distdir)/ChangeLog; \
  84. # fi
  85. # ## Texinfo stuff
  86. #
  87. # info_TEXINFOS = doc/mudsync.texi
  88. #
  89. # mudsync_TEXINFOS = \
  90. # doc/fdl.texi
  91. dvi-local: # Skip dvi docs