mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-19 03:33:43 +03:00
Simplify.
This commit is contained in:
1 parent
d5871aa850
commit
b226b6589c
1 file changed
+5
-10
+5
-10
@@ -1,17 +1,12 @@
|
||||
## This is a template from which Makefile.am is generated. -*-Makefile-*-
|
||||
|
||||
##m4-files-begin
|
||||
##m4-files-end
|
||||
|
||||
Makefile.am: Makefile.am.in
|
||||
rm -f $@ $@t
|
||||
sed -n '1,/^##m4-files-begin/p' $< > $@t
|
||||
(((echo EXTRA_DIST =; \
|
||||
echo " README Makefile.am.in" \
|
||||
) | tr '\012' @); \
|
||||
(echo *.m4|tr ' ' @) ) \
|
||||
|sed 's/@$$/%/;s/@/ \\@/g' |tr @% '\012\012' \
|
||||
(echo "## Process this file with automake to produce Makefile.in."; \
|
||||
echo EXTRA_DIST =; \
|
||||
echo "EXTRA_DIST += README Makefile.am.in"; \
|
||||
ls -1 *.m4 | sed 's/^/EXTRA_DIST += /'; echo ) \
|
||||
>> $@t
|
||||
sed -n '/^##m4-files-end/,$$p' $< >> $@t
|
||||
sed -n '/^Makefile\.am:/,$$p' $< >> $@t
|
||||
chmod a-w $@t
|
||||
mv $@t $@
|
||||
Reference in new issue
Block a user