+Sun Dec 31 13:04:59 1995 Tom Tromey <tromey@cambric.colorado.edu>
+
+ * automake.in (initialize_global_constants): Don't print body of
+ loop at make time.
+
+ Changes from François Pinard:
+ * depend.am (MKDEP): Include DEFS, INCLUDES, CPPFLAGS, CFLAGS.
+ (DEP_FILES): Put dependency files in $(srcdir).
+ Look in $(srcdir) when including dependency files.
+ ($(srcdir)/.deps/.P): .deps/.P is in $(srcdir).
+ (.deps/%.P): MKDEP includes all macro expansions.
+ * dist-subd-top.am (dist): Get absolute path for distdir. Don't
+ be so verbose.
+ * dist-subd.am (dist): Don't be so verbose.
+ * dist.am (dist): Don't be so verbose.
+
+ * automake.in (do_one_clean_target): Remove config.status in
+ maintainer-clean. From Jim Meyering.
+
+ * programs-clean.am (clean-@DIR@PROGRAMS): Bug fix. From Jim
+ Meyering.
+
+ * automake.in (handle_merge_targets): Add dummy command for empty
+ install target. From Jim Meyering.
+
Tue Dec 12 10:06:28 1995 Tom Tromey <tromey@cambric.colorado.edu>
* texinfos.am (uninstall-info): Bug fix.
New in 0.26:
* Added --install-missing option.
* Pretty-prints generated macros
+* Comments in Makefile.am are placed more intelligently in Makefile.in
\f
New in 0.25:
* Bug fixes.
}
$output_rules .= "\n";
- }
+ }
}
}
$output_rules .= ('install: '
. join (' ', @install)
+ . "\n\t:"
. "\n\n"
. 'uninstall: '
. join (' ', @uninstall)
$output_rules .=
("\t\@echo \"This command is intended for maintainers to use;\"\n"
. "\t\@echo \"it deletes files that may require special "
- . "tools to rebuild.\"\n");
+ . "tools to rebuild.\"\n"
+ . "\trm -f config.status\n");
}
- elsif ($name . $target eq 'distclean'
- || $name . $target eq 'maintainer-clean')
+ elsif ($name . $target eq 'distclean')
{
$output_rules .= "\trm -f config.status\n";
}
# Helper text for dealing with man pages.
$install_man_format =
- ' sect=@SECTION@; \\
+ ' \@sect=@SECTION@; \\
inst=`echo "@MANBASE@" | sed \'$(transform)\'`.@FULLSECT@; \\
echo installing @MAN@ as $(mandir)/man$$sect/$$inst; \\
$(INSTALL_DATA) $(srcdir)/@MAN@ $(mandir)/man$$sect/$$inst; \\
# GNU make and gcc. It is only included in the generated Makefile.in
# if `automake' is not passed the `--include-deps' flag.
-MKDEP = gcc -MM
+MKDEP = gcc -MM $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
## Use $(kr) in case we are doing auto-deANSIfication.
-DEP_FILES = $(patsubst %.$(kr)o,.deps/%.P,$(OBJECTS))
+DEP_FILES = $(patsubst %.$(kr)o, $(srcdir)/.deps/%.P,$(OBJECTS))
## We use ".P" as the name of our placeholder because it can't be
## duplicated by any C source file. (Well, there could be ".c", but
## no one does that in practice)
--include .deps/.P
-.deps/.P:
- test -d .deps || mkdir .deps
+-include $(srcdir)/.deps/.P
+$(srcdir)/.deps/.P:
+ cd $(srcdir) && test -d .deps || mkdir .deps
## Use ":" here and not "echo timestamp". Otherwise GNU Make barfs:
## .deps/.P:1: *** missing separator. Stop.
: > $@
-include $(DEP_FILES)
-$(DEP_FILES): .deps/.P
+$(DEP_FILES): $(srcdir)/.deps/.P
-.deps/%.P: %.c
+$(srcdir)/.deps/%.P: $(srcdir)/%.c
@echo "mkdeps $< > $@"
- @$(MKDEP) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $< > $@-tmp
+ @$(MKDEP) $< > $@-tmp
@mv $@-tmp $@
# End of maintainer-only section
dist: $(DISTFILES)
rm -rf $(distdir)
mkdir $(distdir)
- (cd $(srcdir) && automake --include-deps --output-dir=$(distdir))
+## We need an absolute path for --output-dir. Get that here.
+ distdir=`cd $(distdir) && pwd` \
+ && cd $(srcdir) \
+ && automake --include-deps --output-dir=$$distdir
@for file in $(DISTFILES); do \
## Test for file existence because sometimes a file gets included in
## DISTFILES twice. For example this happens when a single source
## situations in which "ln" can fail. For instance a file to
## distribute could actually be a cross-filesystem symlink -- this can
## easily happen if "gettextize" was run on the distribution.
- test -f $(distdir)/$$file || { \
- echo linking $$file; \
- ln $(srcdir)/$$file $(distdir)/$$file; \
- } || { \
- echo copying $$file instead; \
- cp -p $(srcdir)/$$file $(distdir)/$$file; \
- }; \
+ test -f $(distdir)/$$file \
+ || ln $(srcdir)/$$file $(distdir)/$$file \
+ || cp -p $(srcdir)/$$file $(distdir)/$$file; \
done
for subdir in $(SUBDIRS); do \
## Test for directory existence here because previous automake
dist: $(DISTFILES)
@for file in $(DISTFILES); do \
## See dist-subd-top.am to understand this.
- test -f $(distdir)/$$file || { \
- echo linking $$file; \
- ln $(srcdir)/$$file $(distdir)/$$file; \
- } || { \
- echo copying $$file instead; \
- cp -p $(srcdir)/$$file $(distdir)/$$file; \
- }; \
+ test -f $(distdir)/$$file \
+ || ln $(srcdir)/$$file $(distdir)/$$file \
+ || cp -p $(srcdir)/$$file $(distdir)/$$file; \
done
mkdir $(distdir)
(cd $(srcdir) && automake --include-deps --output-dir=$(distdir))
@for file in $(DISTFILES); do \
- test -f $(distdir)/$$file || { \
- echo linking $$file; \
- ln $(srcdir)/$$file $(distdir)/$$file; \
- } || { \
- echo copying $$file instead; \
- cp -p $(srcdir)/$$file $(distdir)/$$file; \
- }; \
+ test -f $(distdir)/$$file \
+ || ln $(srcdir)/$$file $(distdir)/$$file \
+ || cp -p $(srcdir)/$$file $(distdir)/$$file; \
done
@sublist="$(DIST_SUBDIRS)"; \
for dir in $$sublist; do \
# GNU make and gcc. It is only included in the generated Makefile.in
# if `automake' is not passed the `--include-deps' flag.
-MKDEP = gcc -MM
+MKDEP = gcc -MM $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
## Use $(kr) in case we are doing auto-deANSIfication.
-DEP_FILES = $(patsubst %.$(kr)o,.deps/%.P,$(OBJECTS))
+DEP_FILES = $(patsubst %.$(kr)o, $(srcdir)/.deps/%.P,$(OBJECTS))
## We use ".P" as the name of our placeholder because it can't be
## duplicated by any C source file. (Well, there could be ".c", but
## no one does that in practice)
--include .deps/.P
-.deps/.P:
- test -d .deps || mkdir .deps
+-include $(srcdir)/.deps/.P
+$(srcdir)/.deps/.P:
+ cd $(srcdir) && test -d .deps || mkdir .deps
## Use ":" here and not "echo timestamp". Otherwise GNU Make barfs:
## .deps/.P:1: *** missing separator. Stop.
: > $@
-include $(DEP_FILES)
-$(DEP_FILES): .deps/.P
+$(DEP_FILES): $(srcdir)/.deps/.P
-.deps/%.P: %.c
+$(srcdir)/.deps/%.P: $(srcdir)/%.c
@echo "mkdeps $< > $@"
- @$(MKDEP) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $< > $@-tmp
+ @$(MKDEP) $< > $@-tmp
@mv $@-tmp $@
# End of maintainer-only section
mostlyclean-@DIR@PROGRAMS:
clean-@DIR@PROGRAMS:
- rm -f $(@DIR@PROGRAMS)
+ rm -f $(@DIR@_PROGRAMS)
distclean-@DIR@PROGRAMS: