 
.PHONY:	default all install clean realclean installation progman userman

subdirs = \
installation progman userman

all: default

default:
	for dir in $(subdirs); \
          do \
            (cd $${dir}; echo Making in $${dir}; $(MAKE) default) || exit 1; \
          done

install:
	for dir in $(subdirs); \
          do \
            (cd $${dir}; echo Making install in $${dir}; $(MAKE) install) || exit 1; \
          done

clean:
	for dir in $(subdirs); \
          do \
            (cd $${dir}; echo Making clean in $${dir}; $(MAKE) clean) || exit 1; \
          done

realclean:
	for dir in $(subdirs); \
          do \
            (cd $${dir}; echo Making clean in $${dir}; $(MAKE) realclean) || exit 1; \
          done

top_srcdir = @top_srcdir@
srcdir = @srcdir@
top_objdir = ..

$(top_srcdir)/configure: $(top_srcdir)/configure.in $(top_srcdir)/aclocal.m4
	cd $(top_srcdir) && autoconf

$(top_objdir)/config.status: $(top_srcdir)/configure
	cd $(top_objdir) && ./config.status --recheck

Makefile: $(srcdir)/Makefile.in $(top_objdir)/config.status
	cd $(top_objdir) && CONFIG_FILES=doc/Makefile ./config.status
