#
# Declare the sub-directories to be built here
#

SUBDIRS = \
	modules\ftp \
	$(EOLIST) 

#
# Get the 'head' of the build environment.  This includes default targets and
# paths to tools
#

include $(AP_WORK)\build\NWGNUhead.inc

#
# Make sure all needed macro's are defined
#

ifndef AWK
AWK = awk
endif

ifndef FTPPORT
FTPPORT = 8021
endif
ifndef FTPROOT
FTPROOT = ftproot
endif
ifndef BASEDIR
export BASEDIR = apache2
endif
ifndef BASEVOL
BASEVOL = SYS:
endif
SOEXT = nlm

#
# build this level's files

#
# You can use this target if all that is needed is to copy files to the
# installation area
#
install :: nlms FORCE
	$(CHKNOT) $(INSTALL)\$(BASEDIR)\$(FTPROOT)\nul mkdir $(INSTALL)\$(BASEDIR)\$(FTPROOT)
	xcopy $(XCOPYSW) docs\manual $(INSTALL)\$(BASEDIR)\manual
ifeq "$(wildcard $(INSTALL)\$(BASEDIR)\conf\extra)" "$(INSTALL)\$(BASEDIR)\conf\extra"
	-$(AWK) -v BDIR=$(BASEVOL)/$(BASEDIR) -v FTPROOT=$(FTPROOT) -v FTPPORT=$(FTPPORT) -v SOEXT=$(SOEXT) -f build\mkconfNW-ftp.awk docs\conf\extra\ftpd.conf >$(INSTALL)\$(BASEDIR)\conf\extra\ftpd.conf
else
	-$(AWK) -v BDIR=$(BASEVOL)/$(BASEDIR) -v FTPROOT=$(FTPROOT) -v FTPPORT=$(FTPPORT) -v SOEXT=$(SOEXT) -f build\mkconfNW-ftp.awk docs\conf\extra\ftpd.conf >$(INSTALL)\$(BASEDIR)\conf\ftpd.conf
endif


