[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gnulib-tool with "--makefile-name=gnulib.mk" creates a file with 'lib/'
From: |
Bjarni Ingi Gislason |
Subject: |
gnulib-tool with "--makefile-name=gnulib.mk" creates a file with 'lib/' inserted to first line of "SED_HEADER_... =" |
Date: |
Mon, 27 Dec 2021 23:55:38 +0000 |
User-agent: |
Mutt/1.10.1 (2018-07-13) |
Software: groff; latest in my repository with fixes for latest gnulib.
gnulib: latest in repository
Produced file "groff/lib/gnulib.mk" contains:
--- start piece of code ---
## begin gnulib module gen-header
# In 'sed', prepend a "DO NOT EDIT" comment to the pattern space.
SED_HEADER_NOEDIT = lib/s,^,/* lib/DO lib/NOT lib/EDIT! lib/GENERATED
lib/AUTOMATICALLY! lib/*/,
# '$(SED_HEADER_STDOUT) -e "..."' runs 'sed' but first outputs "DO NOT EDIT".
SED_HEADER_STDOUT = lib/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 = lib/sed -n \
-e x \
-e '1$(SED_HEADER_NOEDIT)w $@-t' \
-e x \
-e 'w $@-t'
# Use $(gl_V_at) instead of $(AM_V_GEN) or $(AM_V_at) on a line that
# is its recipe's first line if and only if lines are absent.
gl_V_at = $(AM_V_at)
## end gnulib module gen-header
--- end of piece of code ---
Some definitions in the bootstrap.conf of groff:
gnulib_modules="
git-version-gen
havelib
wcwidth
fprintf-posix
snprintf
vsnprintf
gen-header
"
gnulib_tool_option_extras="--makefile-name=gnulib.mk --automake-subdir"
Used programs:
automake (GNU automake) 1.16.5
autoconf (GNU Autoconf) 2.71
--
Bjarni I. Gislason
- gnulib-tool with "--makefile-name=gnulib.mk" creates a file with 'lib/' inserted to first line of "SED_HEADER_... =",
Bjarni Ingi Gislason <=