blob: 12c55819563d30dc5c5742091710311d39401f05 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
Description:
Generating header files
Applicability:
all
Files:
Depends-on:
configure.ac:
Makefile.am:
# In 'sed', prepend a "DO NOT EDIT" comment to the pattern space.
SED_HEADER_NOEDIT = s,^,/* DO NOT EDIT! GENERATED AUTOMATICALLY! */,
# '$(SED_HEADER_STDOUT) -e "..."' runs 'sed' but first outputs "DO NOT EDIT".
SED_HEADER_STDOUT = sed \
-e x \
-e '1$(SED_HEADER_NOEDIT)p' \
-e x
# '$(SED_HEADER_TO_AT_t) FILE' copies FILE to $@-t, prepending a leading
# "DO_NOT_EDIT". Although this could be done more simply via:
# SED_HEADER_TO_AT_t = $(SED_HEADER_STDOUT) > $@-t
# the -n and 'w's avoid a fork+exec, at least when GNU Make is used.
SED_HEADER_TO_AT_t = sed -n \
-e x \
-e '1$(SED_HEADER_NOEDIT)w $@-t' \
-e x \
-e 'w $@-t'
Include:
License:
LGPLv2+
Maintainer:
bug-gnulib@gnu.org
|