1 # 2 # Declare the sub-directories to be built here 3 # 4 5 SUBDIRS = \ 6 modules\ftp \ 7 $(EOLIST) 8 9 # 10 # Get the 'head' of the build environment. This includes default targets and 11 # paths to tools 12 # 13 14 include $(AP_WORK)\build\NWGNUhead.inc 15 16 # 17 # Make sure all needed macro's are defined 18 # 19 20 ifndef AWK 21 AWK = awk 22 endif 23 24 ifndef FTPPORT 25 FTPPORT = 8021 26 endif 27 ifndef FTPROOT 28 FTPROOT = ftproot 29 endif 30 ifndef BASEDIR 31 export BASEDIR = apache2 32 endif 33 ifndef BASEVOL 34 BASEVOL = SYS: 35 endif 36 SOEXT = nlm 37 38 # 39 # build this level's files 40 41 # 42 # You can use this target if all that is needed is to copy files to the 43 # installation area 44 # 45 install :: nlms FORCE 46 $(CHKNOT) $(INSTALL)\$(BASEDIR)\$(FTPROOT)\nul mkdir $(INSTALL)\$(BASEDIR)\$(FTPROOT) 47 xcopy $(XCOPYSW) docs\manual $(INSTALL)\$(BASEDIR)\manual 48 ifeq "$(wildcard $(INSTALL)\$(BASEDIR)\conf\extra)" "$(INSTALL)\$(BASEDIR)\conf\extra" 49 -$(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 50 else 51 -$(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 52 endif 53 54