#                Endeavour Mark II - Master Makefile
#
# Configure the source before using this Makefile.
#
# For help on configuring the source, type:
#
#	# ./configure --help
#
# Or read the installation instructions for more details, type:
#
#	# more INSTALL
#


# Shell:
#
# Uncomment this if you need to set the shell explicitly
#
#SHELL = /bin/bash

# GNU Make:
#
# Uncomment this if you need to set the make program explicitly
#
#MAKE = /usr/bin/gmake


# Source Directories List:
#
# List of subdirectories in this source that contain targets that need
# to be built.
#
# Note that the Endeavour Mark II Base library should be built first
# since all other targets depend on it.
#
ALL_SRC_DIRS = endeavour2/libendeavour2-base		\
 endeavour2						\
 endeavour2/download.front				\
 endeavour2/format.front				\
 endeavour2/fsck.front					\
 endeavour2/hedit					\
 endeavour2/sysinfo					\
 endeavour2/tedit					\
 endeavour2/ziptool.front				\
 endeavour2/utils


# Build Rules:
#
all config:
	@for subdir in $(ALL_SRC_DIRS); do			\
            $(MAKE) -s -C $$subdir -f Makefile $@ || exit 1;	\
        done
	@echo "To install, type \"su\" (to gain root privileges)\
and then type \"make install\"."


# Install Rule:
#
install:
	@for subdir in $(ALL_SRC_DIRS); do			\
            $(MAKE) -s -C $$subdir -f Makefile $@ || exit 1;	\
        done
	@echo "Installation done."
	@echo " "
	@echo "Please read the INSTALL file for further instructions on installing"
	@echo "MIME Types and other data files that were are not installed by default."
	@echo " "


# Clean Rule:
#
clean:
	@for subdir in $(ALL_SRC_DIRS); do			\
            $(MAKE) -s -C $$subdir -f Makefile $@; 		\
        done
