summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJohn Kohl <jtkohl@mit.edu>1991-01-04 10:59:16 +0000
committerJohn Kohl <jtkohl@mit.edu>1991-01-04 10:59:16 +0000
commitf2837d578f80b9bab7ee817a61b4b8e55bdbaaa1 (patch)
tree6aca7924160f4d713f505a3aad7490e33077d591 /src
parent4f05db60de48e95242e345c4a40efa5718e7dd01 (diff)
downloadkrb5-f2837d578f80b9bab7ee817a61b4b8e55bdbaaa1.tar.gz
krb5-f2837d578f80b9bab7ee817a61b4b8e55bdbaaa1.tar.xz
krb5-f2837d578f80b9bab7ee817a61b4b8e55bdbaaa1.zip
add a 'world' target to do the Right Thing, and change all to be just
a rebuild step git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1614 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src')
-rw-r--r--src/Imakefile24
1 files changed, 18 insertions, 6 deletions
diff --git a/src/Imakefile b/src/Imakefile
index 2cd73ce51..811950821 100644
--- a/src/Imakefile
+++ b/src/Imakefile
@@ -10,13 +10,16 @@
#define IHaveSubdirs
#define PassCDebugFlags
+/* default target... */
+all::
+
#ifdef UseComErrInstalled
COMERRDIR=
-all::
+world::
$(RM) include/com_err.h
#else
COMERRDIR=comerr
-all::
+world::
$(RM) include/com_err.h
$(LN) ../comerr/com_err.h include/com_err.h
#endif
@@ -30,19 +33,28 @@ UNIFDIR=
#else
UNIFDIR=util/unifdef
#endif
-all::
- make includes
+world::
+ make ${MFLAGS} mastermakefiles
+ make ${MFLAGS} depend
+ make ${MFLAGS} all
- SUBDIRS = $(UNIFDIR) include $(COMERRDIR) $(SSDIR) lib kdc admin clients appl
- LNINSTALLDIRS =
+SUBDIRS = $(UNIFDIR) include $(COMERRDIR) $(SSDIR) lib kdc admin clients appl
+LNINSTALLDIRS =
MakeSubdirs($(SUBDIRS))
depend:: includes
/**/# rebuild the Makefiles in the master source tree
+#ifdef UseImakeInstalled
+mastermakefiles::
+ -$(MV) Makefile Makefile.bak
+ $(MAKE) -f Makefile.bak Makefile
+ $(MAKE) Makefiles
+#else
mastermakefiles::
cd $(IMAKESRC); $(MAKE) -f Makefile.ini clean; $(MAKE) -f Makefile.ini BOOTSTRAPCFLAGS="$(BOOTSTRAPCFLAGS)"
-$(MV) Makefile Makefile.bak
$(MAKE) -f Makefile.bak Makefile
$(MAKE) Makefiles
+#endif