# Master Makefile for OpenLDAP
-# Copyright 1998 The OpenLDAP Foundation, All Rights Reserved.
-# COPYING RESTRICTIONS APPLY, See COPYRIGHT file
+##
+## Copyright 1998,1999 The OpenLDAP Foundation, Redwood City, California, USA
+## All rights reserved.
+##
+## Redistribution and use in source and binary forms are permitted only
+## as authorized by the OpenLDAP Public License. A copy of this
+## license is available at http://www.OpenLDAP.org/license.html or
+## in file LICENSE in the top-level directory of the distribution.
+##
-SUBDIRS= include libraries clients servers # contrib
-CLEANDIRS= tests
-INSTALLDIRS= doc
+SUBDIRS= include libraries clients servers tests doc
+CLEANDIRS= contrib
+INSTALLDIRS=
+
+libraries: include
+clients servers: libraries
+tests: clients servers
makefiles: FORCE
./config.status
-configure: configure.in aclocal.m4
- autoconf
-
-# autoheader might not change config.h.in, so touch a stamp file
-${srcdir}/include/portable.h.in: stamp-h.in
-${srcdir}/stamp-h.in: configure.in aclocal.m4 acconfig.h
- cd ${srcdir} && autoheader
- @echo timestamp > ${srcdir}/stamp-h.in
+# force a make all before make install
+# only done at the top-level
+install-common: all FORCE
-config.h: stamp-h
-stamp-h: config.h.in config.status
- ./config.status
+clean-local: FORCE
+ $(RM) config.log
-config.status: configure
- ./config.status --recheck
+veryclean-local: FORCE
+ $(RM) config.cache config.status libtool stamp-h stamp-h.in
+distclean: veryclean FORCE