Commit | Line | Data |
---|---|---|
c05676c5 CY |
1 | ;; ede-make.srt --- SRecode templates for Makefiles used by EDE. |
2 | ||
acaf905b | 3 | ;; Copyright (C) 2008-2012 Free Software Foundation, Inc. |
c05676c5 CY |
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 | |
30 | ---- | |
31 | # Automatically Generated {{FILE}} by EDE. | |
32 | # For use with: {{MAKETYPE}} | |
33 | # | |
34 | # DO NOT MODIFY THIS FILE OR YOUR CHANGES MAY BE LOST. | |
35 | # EDE is the Emacs Development Environment. | |
36 | # http://cedet.sourceforge.net/ede.shtml | |
37 | # | |
38 | ||
39 | ---- | |
40 | ||
41 | context declaration | |
42 | ||
43 | template ede-vars | |
44 | ---- | |
45 | {{#VARIABLE}} | |
46 | {{NAME}}={{#VALUE}} {{VAL}}{{/VALUE}}{{/VARIABLE}} | |
47 | ---- | |
48 | ||
62a81506 CY |
49 | ;; Some extra templates for Arduino based Makefiles. |
50 | ;; Perhaps split this out someday in the future. | |
51 | context arduino | |
52 | ||
53 | template ede-empty :file | |
54 | ---- | |
55 | # Automatically Generated {{FILE}} by EDE. | |
56 | # For use with Make for an Arduino project. | |
57 | # | |
58 | # DO NOT MODIFY THIS FILE OR YOUR CHANGES MAY BE LOST. | |
59 | # EDE is the Emacs Development Environment. | |
60 | # http://cedet.sourceforge.net/ede.shtml | |
61 | ||
62 | ARDUINO_DIR = {{ARDUINO_HOME}} | |
63 | ||
64 | TARGET = {{TARGET}} | |
65 | ARDUINO_LIBS = {{ARDUINO_LIBS}} | |
66 | ||
67 | MCU = {{MCU}} | |
68 | F_CPU = {{F_CPU}} | |
69 | ARDUINO_PORT = {{PORT}} | |
70 | BOARD_TAG = {{BOARD}} | |
71 | ||
72 | AVRDUDE_ARD_BAUDRATE = {{AVRDUDE_ARD_BAUDRATE}} | |
73 | AVRDUDE_ARD_PROGRAMMER = {{AVRDUDE_ARD_PROGRAMMER}} | |
74 | ||
75 | include {{ARDUINO_MK}} | |
76 | ||
77 | # End of Makefile | |
78 | ---- | |
79 | ||
80 | ||
68972a4f | 81 | ;; end |