]> code.delx.au - gnu-emacs/blob - etc/srecode/ede-make.srt
f5233bed2fd37741a82d58bb9b57e11a5e0e8d64
[gnu-emacs] / etc / srecode / ede-make.srt
1 ;; ede-make.srt --- SRecode templates for Makefiles used by EDE.
2
3 ;; Copyright (C) 2008-2014 Free Software Foundation, Inc.
4
5 ;; Author: Eric M. Ludlam <eric@siege-engine.com>
6
7 ;; This file is part of GNU Emacs.
8
9 ;; GNU Emacs is free software: you can redistribute it and/or modify
10 ;; it under the terms of the GNU General Public License as published by
11 ;; the Free Software Foundation, either version 3 of the License, or
12 ;; (at your option) any later version.
13
14 ;; GNU Emacs is distributed in the hope that it will be useful,
15 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
16 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 ;; GNU General Public License for more details.
18
19 ;; You should have received a copy of the GNU General Public License
20 ;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
21
22 set mode "makefile-mode"
23 set escape_start "{{"
24 set escape_end "}}"
25 set application "ede"
26
27 context file
28
29 template ede-empty :file :project
30 ----
31 # Automatically Generated {{FILE}} by EDE.
32 # For use with: {{MAKETYPE}}
33 # Relative File Name: {{PROJECT_FILENAME}}
34 #
35 # DO NOT MODIFY THIS FILE OR YOUR CHANGES MAY BE LOST.
36 # EDE is the Emacs Development Environment.
37 # http://cedet.sourceforge.net/ede.shtml
38 #
39
40 ----
41
42 context declaration
43
44 template ede-vars
45 ----
46 {{#VARIABLE}}
47 {{NAME}}={{#VALUE}} {{VAL}}{{/VALUE}}{{/VARIABLE}}
48 ----
49
50 ;; Some extra templates for Arduino based Makefiles.
51 ;; Perhaps split this out someday in the future.
52 context arduino
53
54 template ede-empty :file
55 ----
56 # Automatically Generated {{FILE}} by EDE.
57 # For use with Make for an Arduino project.
58 #
59 # DO NOT MODIFY THIS FILE OR YOUR CHANGES MAY BE LOST.
60 # EDE is the Emacs Development Environment.
61 # http://cedet.sourceforge.net/ede.shtml
62
63 ARDUINO_DIR = {{ARDUINO_HOME}}
64
65 TARGET = {{TARGET}}
66 ARDUINO_LIBS = {{ARDUINO_LIBS}}
67
68 MCU = {{MCU}}
69 F_CPU = {{F_CPU}}
70 ARDUINO_PORT = {{PORT}}
71 BOARD_TAG = {{BOARD}}
72
73 AVRDUDE_ARD_BAUDRATE = {{AVRDUDE_ARD_BAUDRATE}}
74 AVRDUDE_ARD_PROGRAMMER = {{AVRDUDE_ARD_PROGRAMMER}}
75
76 include {{ARDUINO_MK}}
77
78 # End of Makefile
79 ----
80
81
82 ;; end