# Master Makefile for OpenLDAP
-# Copyright 1998 The OpenLDAP Foundation, All Rights Reserved.
-# COPYING RESTRICTIONS APPLY, See COPYRIGHT file
-
-SUBDIRS= include libraries clients servers # contrib
-CLEANDIRS= tests
-INSTALLDIRS= doc
+# $OpenLDAP$
+## This work is part of OpenLDAP Software <http://www.openldap.org/>.
+##
+## Copyright 1998-2006 The OpenLDAP Foundation.
+## All rights reserved.
+##
+## Redistribution and use in source and binary forms, with or without
+## modification, are permitted only as authorized by the OpenLDAP
+## Public License.
+##
+## A copy of this license is available in the file LICENSE in the
+## top-level directory of the distribution or, alternatively, at
+## <http://www.OpenLDAP.org/license.html>.
+
+SUBDIRS= include libraries clients servers tests doc
+CLEANDIRS=
+INSTALLDIRS=
makefiles: FORCE
./config.status
-${srcdir}/configure: configure.in aclocal.m4
- cd ${srcdir} && autoconf
-
-# autoheader might not change portable.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 \
- ${srcdir}/include/portable.h.top ${srcdir}/include/portable.h.bot
- 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
-./include/portable.h: stamp-h
-stamp-h: config.h.in config.status
- ./config.status
+clean-local: FORCE
+ $(RM) config.cache config.log configure.lineno
+ $(RM) -r autom4te.cache
-Makefile: Makefile.in config.status
- ./config.status
+veryclean-local: FORCE
+ $(RM) config.status libtool stamp-h stamp-h.in
-config.status: configure
- ./config.status --recheck
+distclean: veryclean FORCE
+check: test
+test: FORCE
+ cd tests; make test