[952] in Kerberos-V5-bugs
aclocal.m4 and configure.in
daemon@ATHENA.MIT.EDU (epeisach@MIT.EDU)
Thu Nov 10 13:10:04 1994
From: epeisach@MIT.EDU
Date: Thu, 10 Nov 1994 13:09:58 -0500
To: krb5-bugs@MIT.EDU
If the configure.in file is changed, but autoconf is not run,
the Makefiles will attempt to update the configure file and fail for use
of wrong arguments. Also Makefiles now know about config/pre.in and
post.in...
The following fixes that problem. (and provides another fix for a make
clean when copying src header files into a different place in the build
tree).
The use of BUILDTOP in the autoconf line is because it indicates the
relative location in the tree of the current directory - the same in a
src or build tree for a given directory...
===================================================================
RCS file: /mit/krb5/.cvsroot/src/aclocal.m4,v
retrieving revision 1.36
diff -c -r1.36 aclocal.m4
*** 1.36 1994/11/08 02:29:39
--- aclocal.m4 1994/11/10 18:09:39
***************
*** 144,155 ****
[
SHELL=/bin/sh
! Makefile: $(srcdir)/Makefile.in config.status
$(SHELL) config.status
config.status: $(srcdir)/configure
$(SHELL) config.status --recheck
! configure: $(srcdir)/configure.in
! cd $(srcdir); autoconf
]
AC_DIVERT_POP()dnl
])dnl
--- 144,155 ----
[
SHELL=/bin/sh
! Makefile: $(srcdir)/Makefile.in config.status $(SRCTOP)/config/pre.in $(SRCTOP)/config/post.in
$(SHELL) config.status
config.status: $(srcdir)/configure
$(SHELL) config.status --recheck
! $(srcdir)/configure: $(srcdir)/configure.in $(SRCTOP)/aclocal.m4
! cd $(srcdir); autoconf --localdir=$(BUILDTOP) --macrodir=$(BUILDTOP)/util/autoconf
]
AC_DIVERT_POP()dnl
])dnl
***************
*** 387,392 ****
--- 387,395 ----
else \
(set -x; [$](RM) $2/$1; [$](CP) $(srcdir)/$1 $2/$1) \
fi
+
+ clean::
+ $(RM) $2/$1
AC_DIVERT_POP()dnl
])dnl