* Makefile.in (all-unix): Fix symlinking so building in a link
authorTom Yu <tlyu@mit.edu>
Thu, 5 Sep 1996 23:10:01 +0000 (23:10 +0000)
committerTom Yu <tlyu@mit.edu>
Thu, 5 Sep 1996 23:10:01 +0000 (23:10 +0000)
  farm or in source directory won't result in dangling
  db-ndbm.h symlink.

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

src/util/ChangeLog
src/util/Makefile.in

index 79150652a2258bd2c8e18172c40bcd3a06b6bfad..86cf3021be02cdc0177577091303433a9d16368c 100644 (file)
@@ -1,3 +1,9 @@
+Thu Sep  5 18:48:46 1996  Tom Yu  <tlyu@mit.edu>
+
+       * Makefile.in (all-unix): Fix symlinking so building in a link
+               farm or in source directory won't result in dangling
+               db-ndbm.h symlink.
+
 Sat Aug 31 01:34:41 1996  Ken Raeburn  <raeburn@cygnus.com>
 
        * makeshlib.sh (*-*-aix*): Echo more stuff before running it.
index 12fcfb56eb52eee6b8ab225ae59fca76a291644d..ce02ef61316382a7fed407ff50b54e9576b8845f 100644 (file)
@@ -25,7 +25,11 @@ all-unix::
        ln -s ../util/db2/obj/db.h ../include
        ln -s ../util/db2/obj/db-config.h ../include
        ln -s ../util/db2/obj/libdb.a ../lib
-       ln -s $(srcdir)/db2/include/db-ndbm.h ../include
+       if test '$(srcdir)' = . ; then \
+               ln -s ../util/db2/include/db-ndbm.h ../include; \
+       else \
+               ln -s $(srcdir)/db2/include/db-ndbm.h ../include; \
+       fi
 
 unixmac: libupdate