From ce3caf7ac08c85400299c3f02e60d735464d80b1 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Sat, 9 Dec 1995 03:16:07 +0000 Subject: [PATCH] More fixes for uniform naming --- ChangeLog | 3 +++ Makefile.in | 6 ++++-- automake.in | 12 +++++++++++- 3 files changed, 18 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 6e55cf8..9381ab0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -3,6 +3,9 @@ Fri Dec 8 16:30:48 1995 Tom Tromey * depend.am (DEP_FILES): Handle deANSIfication case. From Jim Meyering. + + * automake.in (am_install_var): Changed how 'clean' handled for + uniform name targets. * Makefile.am (pkgdata_DATA): Added new files. * data-clean.am: New file. * scripts-clean.am: New file. diff --git a/Makefile.in b/Makefile.in index 31ba00a..563624d 100644 --- a/Makefile.in +++ b/Makefile.in @@ -58,11 +58,13 @@ libraries.am library.am mans-vars.am \ program.am programs.am remake-hdr.am \ remake-subd.am remake.am scripts.am subdirs.am tags.am tags-subd.am \ tags-clean.am \ -texi-clean.am texi-version.am texinfos-vars.am texinfos.am +texi-clean.am texi-version.am texinfos-vars.am texinfos.am \ +libraries-clean.am scripts-clean.am programs-clean.am data-clean.am DIST_OTHER = automake.in -ETAGS_ARGS = automake.in --lang=none --regex='/^@node[ \t]+\([^,]+\)/\1/' automake.texi +ETAGS_ARGS = automake.in --lang=none \ + --regex='/^@node[ \t]+\([^,]+\)/\1/' automake.texi SCRIPTS = $(bin_SCRIPTS) diff --git a/automake.in b/automake.in index c341101..acba27e 100755 --- a/automake.in +++ b/automake.in @@ -1283,6 +1283,9 @@ sub am_variable # avoid typos (eg 'bni_PROGRAMS' should give error). Returns list of # all values of all _HOW targets. # +# FIXME this should be rewritten to be cleaner. It should be broken +# up into multiple functions. +# # Usage is: am_install_var (OPTION..., file, HOW, where...) sub am_install_var { @@ -1311,6 +1314,7 @@ sub am_install_var local (@result) = (); local ($template) = &file_contents ($file); + local ($clean_templ) = &file_contents ($file . '-clean'); local ($munge); local ($one_name); foreach (@prefixes) @@ -1321,7 +1325,13 @@ sub am_install_var # Append actual contents to result. push (@result, split (/\s+/, $contents{$one_name})); - push (@clean, $_ . $primary) if $do_clean; + if ($do_clean) + { + ($munge = $clean_templ) =~ s/\@DIR\@/$_/g; + $output_rules .= $munge; + push (@clean, $_ . $primary); + } + push (@used, '$(' . $one_name . ')'); if ($_ eq 'noinst') { -- 2.7.4