# Master Makefile for OpenLDAP
-# Copyright 1998 The OpenLDAP Foundation, All Rights Reserved.
-# COPYING RESTRICTIONS APPLY, See COPYRIGHT file
+# $OpenLDAP$
+## This work is part of OpenLDAP Software <http://www.openldap.org/>.
+##
+## Copyright 1998-2014 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 # contrib
+SUBDIRS= include libraries clients servers tests doc
+CLEANDIRS=
+INSTALLDIRS=
makefiles: FORCE
./config.status
-configure: configure.in aclocal.m4
- autoconf
+# force a make all before make install
+# only done at the top-level
+install-common: all FORCE
-# 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
+clean-local: FORCE
+ $(RM) config.cache config.log configure.lineno
+ $(RM) -r autom4te.cache
-config.h: stamp-h
-stamp-h: config.h.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