make.srt 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. ;; make.srt
  2. ;; Copyright (C) 2009-2016 Free Software Foundation, Inc.
  3. ;; Author: Eric M. Ludlam <eric@siege-engine.com>
  4. ;; This file is part of GNU Emacs.
  5. ;; GNU Emacs 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 3 of the License, or
  8. ;; (at your option) any later version.
  9. ;; GNU Emacs 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. ;; You should have received a copy of the GNU General Public License
  14. ;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
  15. set mode "makefile-mode"
  16. set escape_start "{{"
  17. set escape_end "}}"
  18. set comment_start "#"
  19. set comment_prefix "#"
  20. set TAB "\t"
  21. context file
  22. template empty :file :user
  23. ----
  24. {{>:filecomment}}
  25. all: {{^}}
  26. {{comment_start}} end
  27. ----
  28. context declaration
  29. ;; GNU Make has real functions you can define, but semantic uses
  30. ;; 'function for rules. This is unfortunate, and should be fixed.
  31. template rule :blank
  32. ----
  33. {{?NAME}}:
  34. {{TAB}}{{^}}
  35. ----
  36. bind "r"
  37. template inferencerule :blank
  38. ----
  39. %.{{?SRCEXTENSION}}: %.{{?DESTEXTENSION}}
  40. {{TAB}}{{^}}
  41. ----
  42. bind "i"
  43. template phonyrule :blank
  44. ----
  45. .PHONY {{?NAME}}
  46. {{NAME}}:
  47. {{TAB}}{{^}}
  48. ----
  49. bind "p"
  50. template variable :blank
  51. "Insert a variable declaration."
  52. ----
  53. {{?NAME}}:= {{^}}
  54. ----
  55. bind "v"
  56. template include :blank
  57. ----
  58. include {{?NAME}}
  59. ----
  60. ;; end