From 00593138f0dcca5cc79960cc25e2f852acb0c77c Mon Sep 17 00:00:00 2001 From: Tom Yu Date: Fri, 14 Jun 1996 03:17:33 +0000 Subject: [PATCH] * post.in,pre.in: break some things out from aclocal.m4 and put them here git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8361 dc483132-0cff-0310-8789-dd5450dbe970 --- src/config/ChangeLog | 5 +++++ src/config/post.in | 33 +++++++++++++++++++++++++++++++++ src/config/pre.in | 26 ++++++++++++++++++++++++++ 3 files changed, 64 insertions(+) diff --git a/src/config/ChangeLog b/src/config/ChangeLog index be8d32f4a..73323b938 100644 --- a/src/config/ChangeLog +++ b/src/config/ChangeLog @@ -1,3 +1,8 @@ +Thu Jun 13 23:02:23 1996 Tom Yu + + * post.in,pre.in: break some things out from aclocal.m4 and put + them here + Wed Jun 12 20:19:49 1996 Theodore Ts'o * windows.in (PAGESIZE): New variable which is used to control the diff --git a/src/config/post.in b/src/config/post.in index ae1e2a240..c23ccd694 100644 --- a/src/config/post.in +++ b/src/config/post.in @@ -35,3 +35,36 @@ clean-unix:: clean-windows:: $(RM) *.$(OBJEXT) $(RM) msvc.pdb *.err + +Makefiles:: Makefile + +Makefile: $(srcdir)/Makefile.in $(thisconfigdir)/config.status \ + $(SRCTOP)/config/pre.in $(SRCTOP)/config/post.in + cd $(thisconfigdir) && $(SHELL) config.status +$(thisconfigdir)/config.status: $(srcdir)/$(thisconfigdir)/configure + cd $(thisconfigdir) && $(SHELL) config.status --recheck +$(srcdir)/$(thisconfigdir)/configure: $(srcdir)/$(thisconfigdir)/configure.in \ + $(SRCTOP)/aclocal.m4 + cd $(srcdir)/$(thisconfigdir) && \ + $(SHELL) $(SRCTOP)/util/autoconf/autoconf \ + --localdir=$(BUILDTOP) \ + --macrodir=$(BUILDTOP)/util/autoconf + +#These don't work well with some versions of GNU make. +#all-unix clean-unix install-unix check-unix Makefiles:: +# @case "`echo '$(MAKEFLAGS)'|sed -e 's/ --.*$$//'`" in \ +# *[ik]*) e=:;; *) e="exit 1";; esac; + +@RECURSE_TARGETS@:: + @e="exit 1"; \ + for i in $(SUBDIRS) ; do \ + if test -d $$i ; then \ + target=`echo $@|sed s/-unix//`; \ + echo "making $$target in $(CURRENT_DIR)$$i..."; \ + if (cd $$i ; $(MAKE) CC="$(CC)" CCOPTS="$(CCOPTS)" \ + CURRENT_DIR=$(CURRENT_DIR)$$i/ $$target) then :; \ + else $$e; fi; \ + else \ + echo "Skipping missing directory $(CURRENT_DIR)$$i" ; \ + fi \ + done diff --git a/src/config/pre.in b/src/config/pre.in index 189296e13..d5f8342f0 100644 --- a/src/config/pre.in +++ b/src/config/pre.in @@ -2,6 +2,7 @@ ## common prefix for all Makefile.in in the Kerberos V5 tree. WHAT = unix +SHELL=/bin/sh all:: all-$(WHAT) @@ -91,6 +92,31 @@ OBJEXT = o LIBEXT = a EXEEXT = +# error table rules +# +### /* these are invoked as $(...) foo.et, which works, but could be better */ +COMPILE_ET_H= $(AWK) -f $(SRCTOP)/util/et/et_h.awk outfile=$@ +COMPILE_ET_C= $(AWK) -f $(SRCTOP)/util/et/et_c.awk outfile=$@ + +.SUFFIXES: .h .c .et .ct + +.et.h: + $(AWK) -f $(SRCTOP)/util/et/et_h.awk outfile=$*.h $< + +.et.c: + $(AWK) -f $(SRCTOP)/util/et/et_c.awk outfile=$*.c $< + +# ss command table rules +# +MAKE_COMMANDS= $(BUILDTOP)/util/ss/mk_cmds + +.ct.c: + @if [ $< != "$*.ct" ]; then \ + (set -x; cp $< "$*.ct" && $(MAKE_COMMANDS) "$*.ct" && $(RM) "$*.ct") || exit 1; \ + else \ + (set -x; $(MAKE_COMMANDS) "$*.ct") || exit 1; \ + fi + all:: clean:: install:: -- 2.26.2