
#
# *********************************************************
# *   Copyright 2003, CyberTAN  Inc.  All Rights Reserved *
# *********************************************************

# This is UNPUBLISHED PROPRIETARY SOURCE CODE of CyberTAN Inc.
# the contents of this file may not be disclosed to third parties,
# copied or duplicated in any form without the prior written
# permission of CyberTAN Inc.

# This software should be used as a reference only, and it not
# intended for production use!


# THIS SOFTWARE IS OFFERED "AS IS", AND CYBERTAN GRANTS NO WARRANTIES OF ANY
# KIND, EXPRESS OR IMPLIED, BY STATUTE, COMMUNICATION OR OTHERWISE.  CYBERTAN
# SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS
# FOR A SPECIFIC PURPOSE OR NONINFRINGEMENT CONCERNING THIS SOFTWARE
#

ifneq ($(wildcard $(SRCBASE)/cy_conf.mak),)
  include $(SRCBASE)/cy_conf.mak
endif

all:

install:
	rm -rf $(INSTALLDIR)/www
	install -d $(INSTALLDIR)/www
	install -m 644 $(wildcard *.asp) $(wildcard *.jpg) $(wildcard *.gif) $(wildcard *.css) $(wildcard *.js) $(wildcard *.htm) $(INSTALLDIR)/www
	cp -a image $(INSTALLDIR)/www
	cp -a help $(INSTALLDIR)/www
	ln -s ../tmp/www $(INSTALLDIR)/www/user

ifneq ($(AOL_SUPPORT),1)
	rm -f $(INSTALLDIR)/www/aol.asp
	rm -f $(INSTALLDIR)/www/aol_error.asp
endif

ifneq ($(HSIAB_SUPPORT),1)
	rm -f $(INSTALLDIR)/www/HotSpot_*
	rm -f $(INSTALLDIR)/www/Config.asp
	rm -f $(INSTALLDIR)/www/New_device.asp
	rm -f $(INSTALLDIR)/www/Old_device.asp
	rm -f $(INSTALLDIR)/www/Register*
endif

ifneq ($(HEARTBEAT_SUPPORT),1)
	rm -f $(INSTALLDIR)/www/index_heartbeat.asp
endif

ifneq ($(MPPPOE_SUPPORT),1)
	rm -f $(INSTALLDIR)/www/index_mpppoe.asp
	rm -f $(INSTALLDIR)/www/Status_mpppoe.asp
endif

ifneq ($(PARENTAL_CONTROL_SUPPORT),1)
	rm -f $(INSTALLDIR)/www/Parental_Control.asp
endif

ifneq ($(BACKUP_RESTORE_SUPPORT),1)
	rm -f $(INSTALLDIR)/www/Backup_Restore.asp
endif


ifneq ($(UPNP_FORWARD_SUPPORT),1)
	rm -f $(INSTALLDIR)/www/Forward_UPnP.asp
endif

	$(MAKE) -C $(SRCBASE)/router/www/common/ install

webcomp:
	webcomp . list > webrom.c

clean:
