autotools: be more accurate in comments when generating processed scripts
Instead of assuming all scripts are .sh.in and leaving a comment to that effect, just take the input file directly. This depends on the first dependency for the target being the source of the script. Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
parent
71f837e45e
commit
e1b9dc6bea
1 changed files with 1 additions and 1 deletions
|
@ -181,7 +181,7 @@ edit = sed \
|
||||||
-e 's|@DUFLAGS[@]|$(DUFLAGS)|g' \
|
-e 's|@DUFLAGS[@]|$(DUFLAGS)|g' \
|
||||||
-e 's|@DUPATH[@]|$(DUPATH)|g' \
|
-e 's|@DUPATH[@]|$(DUPATH)|g' \
|
||||||
-e 's|@SCRIPTNAME[@]|$@|g' \
|
-e 's|@SCRIPTNAME[@]|$@|g' \
|
||||||
-e 's|@configure_input[@]|Generated from $@.sh.in; do not edit by hand.|g'
|
-e 's|@configure_input[@]|Generated from $<; do not edit by hand.|g'
|
||||||
|
|
||||||
## All the scripts depend on Makefile so that they are rebuilt when the
|
## All the scripts depend on Makefile so that they are rebuilt when the
|
||||||
## prefix etc. changes. Use chmod -w to prevent people from editing the
|
## prefix etc. changes. Use chmod -w to prevent people from editing the
|
||||||
|
|
Loading…
Add table
Reference in a new issue