From: Tom Yu Date: Fri, 14 Jun 1996 03:17:33 +0000 (+0000) Subject: * post.in,pre.in: break some things out from aclocal.m4 and put X-Git-Tag: krb5-1.0-beta7~348 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=00593138f0dcca5cc79960cc25e2f852acb0c77c;p=krb5.git * 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 --- 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::