guile.mk 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. ####
  2. #### Copyright (C) 2015 David Pirotte
  3. #### David Pirotte <david at altosw dot be>
  4. #### This file is part of Guile-Squee. A Guile-Squee of Really
  5. #### Important Procedures.
  6. #### Guile-Squee is free software: you can redistribute it and/or
  7. #### modify it under the terms of the GNU Lesser General Public
  8. #### License as published by the Free Software Foundation, either
  9. #### version 3 of the License, or (at your option) any later version.
  10. #### Guile-Squee is distributed in the hope that it will be useful, but
  11. #### WITHOUT ANY WARRANTY; without even the implied warranty of
  12. #### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  13. #### General Public License for more details.
  14. #### You should have received a copy of the GNU General Public License
  15. #### along with Guile-Squee. If not, see <http://www.gnu.org/licenses/>.
  16. ####
  17. gev=$(GUILE_EFFECTIVE_VERSION)
  18. ggsdir=$(GUILE_GLOBAL_SITE)
  19. gscdir=$(GUILE_SITE_CCACHE)
  20. GOBJECTS = $(SOURCES:%.scm=%.go)
  21. nobase_mod_DATA = $(SOURCES)
  22. # $(NOCOMP_SOURCES)
  23. nobase_go_DATA = $(GOBJECTS)
  24. # nobase_mod_SCRIPTS = $(GSCRIPTS)
  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)/env \
  36. guild compile $(GUILE_WARNINGS) -o "$@" "$<"