* post.in,pre.in: break some things out from aclocal.m4 and put
authorTom Yu <tlyu@mit.edu>
Fri, 14 Jun 1996 03:17:33 +0000 (03:17 +0000)
committerTom Yu <tlyu@mit.edu>
Fri, 14 Jun 1996 03:17:33 +0000 (03:17 +0000)
them here

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8361 dc483132-0cff-0310-8789-dd5450dbe970

src/config/ChangeLog
src/config/post.in
src/config/pre.in

index be8d32f4a6bbd335dd271ed201d52dcda91d46f6..73323b9384b026a2ddf7431869329dbc8978b772 100644 (file)
@@ -1,3 +1,8 @@
+Thu Jun 13 23:02:23 1996  Tom Yu  <tlyu@voltage-multiplier.mit.edu>
+
+       * 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  <tytso@rsts-11.mit.edu>
 
        * windows.in (PAGESIZE): New variable which is used to control the
index ae1e2a2405965f14d8fa2c73332404b8858d6c67..c23ccd694e1af3fc4607ec8ee45862e2ffd307b6 100644 (file)
@@ -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
index 189296e138f955fb7c67e91cabd1ea135ad3cce0..d5f8342f05f4fddbdb9178a01a417e1575b605ed 100644 (file)
@@ -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::