+1999-03-30 Paul D. Smith <psmith@gnu.org>
+
+ * configure.in: Don't put build.sh here, since build.sh.in doesn't
+ exist initially. This cause autoreconf and automake to fail when
+ run on a clean CVS checkout. Instead, we create build.sh in the
+ Makefile (see below).
+
+ * Makefile.am: Remove BUILT_SOURCES; this is no longer relevant.
+ Put those files directly into EXTRA_DIST so they're distributed.
+ Create a local build rule to create build.sh.
+ Create a local maintainer-clean rule to delete all the funky
+ maintainers files.
+
+ * maintMakefile: Makefile.in depends on README, since automake
+ fails if it doesn't exist. Also don't remove glob/Makefile.in
+ here, as it causes problems.
+
1999-03-26 Paul D. Smith <psmith@gnu.org>
* configure.in: Substitute GLOBLIB if we need the link the
INCLUDES = -DLIBDIR=\"$(libdir)\" -DINCLUDEDIR=\"$(includedir)\"
-BUILT_SOURCES = README build.sh.in
-
-EXTRA_DIST = $(BUILT_SOURCES) $(man_MANS) README.customs remote-cstms.c\
+EXTRA_DIST = README build.sh.in $(man_MANS) README.customs remote-cstms.c\
make-stds.texi texinfo.tex SCOPTIONS SMakefile\
README.Amiga Makefile.ami config.ami make.lnk amiga.c amiga.h\
README.DOS Makefile.DOS configure.bat dosbuild.bat configh.dos\
CLEANFILES = loadavg
+# --------------- Local BUILD Section
+
+build.sh: $(top_builddir)/config.status $(srcdir)/build.sh.in
+ cd $(top_builddir) \
+ && CONFIG_FILES=build.sh.in CONFIG_HEADERS= $(SHELL) ./config.status
+
+
# --------------- Local INSTALL Section
# If necessary, change the gid of the app and turn on the setgid flag.
cd $$testdir && ./run_make_tests -make $$here/make $(MAKETESTFLAGS)
+# --------------- Local CLEAN section
+
+maintainer-clean-local:
+ -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
+
+
# --------------- Maintainer's Section
@MAINT_MAKEFILE@
fi
AC_SUBST_FILE(MAINT_MAKEFILE)
-AC_OUTPUT(Makefile glob/Makefile build.sh)
+dnl build.sh is also an AC_OUTPUT, but we can't specify it here because
+dnl it's built from build.template and autoconf will crap out. So, we
+dnl build it in the makefiles themselves.
+
+AC_OUTPUT(Makefile glob/Makefile)
case "$make_badcust" in
yes) echo
# Maintainer-only makefile segment. This contains things that are relevant
-# only if you have the full copy of the GNU make sources, not a dist copy.
+# only if you have the full copy of the GNU make sources from the CVS
+# tree, not a dist copy.
#
# Find the glob source files... this might be dangerous, but we're maintainers!
TEMPLATES = README README.DOS config.ami configh.dos config.h.W32 config.h-vms
MTEMPLATES = Makefile.DOS SMakefile
+# We need this to ensure that README is created on time to avoid errors
+# by automake.
+#
+Makefile.in: README
+
# General rule for turning a .template into a regular file.
#
$(TEMPLATES) : % : %.template configure.in
#
# And _I_ want them to be removed ;)
#
-maintFILES = configure aclocal.m4 config.h.in Makefile.in stamp-h.in \
- glob/Makefile.in
+maintFILES = configure aclocal.m4 config.h.in Makefile.in stamp-h.in
MAINTAINERCLEANFILES = $(maintFILES) $(TEMPLATES) $(MTEMPLATES) NMakefile \
missing build.sh.in .dep_segment