# Generated automatically from Makefile.in by configure.
srcdir = .
include /home/bmeyer/shadow-2.3.2/Config.mk

SUBDIRS = src
#
# Local datafiles, some platform-dependent, are installed in $prefix.
#
LOCAL_DATAFILES = SHADOW_VERSION $(srcdir)/NEWS Config.mk $(srcdir)/README
ifeq ($(findstring cygwin32,$(PLATFORM)),)
  LOCAL_DATAFILES += .shadowrc .shadowrc.sh $(srcdir)/INSTALL
else
  LOCAL_DATAFILES += shvars.bat $(srcdir)/INSTALL.w95
endif

DOC_DIRS = doc demo

all includes test \
install_lib install_bin install_script install_data install_binary_data \
install_hdr install_tcl install_demo install_test \
clean clean_bin clean_lib clean_binary_data \
depend relink:
	@$(MAKE) $(MFLAGS) DO=$@ subdir_do
 
install: make-prefix-dir
	@$(MAKE) $(MFLAGS) DO=$@ subdir_do
	-@if [ ! -f Config.mk.in ]; then \
	  for i in `echo $(LOCAL_DATAFILES)`; do \
	      echo "installing $$i as $(prefix)/`basename $$i`"; \
	      $(INSTALL) $(INSTALL_DATAFLAGS) $$i $(prefix)/`basename $$i`; \
	  done; \
	fi

#
# install the docs. Take care not to overwrite the source version (when
# you're building in the source).
#
install-docs: check-doc-dirs
	@if [ ! -f Config.mk.in ]; then \
	  for i in `echo $(DOC_DIRS)`; do \
	    (cd $(srcdir); tar cf - $$i) | (cd $(prefix); tar xvf - ); \
	  done; \
	fi

make-prefix-dir:
	@test -d $(prefix) || mkdir $(prefix)


check-doc-dirs:
	@error=0; \
	for i in `echo $(DOC_DIRS)`; do \
	  if test ! -d $(srcdir)/$$i; then \
	    echo "DOCUMENT directory $(srcdir)/$$i not found!"; \
	    error=1; \
	  fi; \
	done; \
	exit $$error

#
# cleanup the anciliary files left after installation. Be careful not
# to delete the src subtree if we're building in the source tree, so
# check for existence of Config.mk.in and delete if it's not there.
#
post-install-cleanup:
	-rm -f config.log config.hints config.status config.cache \
	    Config.mk Makefile make.log
	-test -f Config.mk.in || rm -rf src

#
# the top-level distclean is special, since we can't delete the Makefile
# until everything is cleaned up, hence no reference to do_distclean.
#
distclean:
	-@$(MAKE) $(MFLAGS) DO=$@ subdir_do
	-rm -f .shadowrc .shadowrc.sh shvars.bat Config.mk SHADOW_VERSION \
	    config.log config.hints config.status config.cache \
	    Makefile make.log

# define the files included in the distribution.
VMSFILES = 

# Define Current directory
CURRENT_DIR = ./

# Define the name for the modules in this directory.
MODULE = TOP
