Fix comment, add WEBDIR=default to force rebuild with default web content
This commit is contained in:
parent
9c9d7ec5e9
commit
8e38f5ee34
1 changed files with 5 additions and 1 deletions
|
@ -19,13 +19,17 @@ CFLAGS += -DWEBSERVER
|
||||||
#For COFFEE_FILES=4 Initial webcontent in program flash memory in a fully writeable coffee file system.
|
#For COFFEE_FILES=4 Initial webcontent in program flash memory in a fully writeable coffee file system.
|
||||||
|
|
||||||
#The default web content is in the /httpd-fs directory. Override with $make WEBDIR=another_directory
|
#The default web content is in the /httpd-fs directory. Override with $make WEBDIR=another_directory
|
||||||
#If WEBDIR is then dropped from the command line the web content will NOT revert to the default unless
|
#If WEBDIR is then dropped from the command line the web content will NOT revert to the default
|
||||||
#unless one of the files in the default directory is changed. This means a .coffeesection may still
|
#unless one of the files in the default directory is changed. This means a .coffeesection may still
|
||||||
#be defined when COFFEE_FILES is dropped from the make, and a section overlap will occur during the link.
|
#be defined when COFFEE_FILES is dropped from the make, and a section overlap will occur during the link.
|
||||||
|
#You can always safely restore the default content with $make WEBDIR=default.
|
||||||
|
|
||||||
.PHONY : force
|
.PHONY : force
|
||||||
ifdef WEBDIR
|
ifdef WEBDIR
|
||||||
FORCE=force
|
FORCE=force
|
||||||
|
ifeq ($(WEBDIR),default)
|
||||||
|
override WEBDIR=$(CONTIKI)/platform/avr-raven/apps/raven-webserver/httpd-fs
|
||||||
|
endif
|
||||||
else
|
else
|
||||||
WEBDIR=$(CONTIKI)/platform/avr-raven/apps/raven-webserver/httpd-fs
|
WEBDIR=$(CONTIKI)/platform/avr-raven/apps/raven-webserver/httpd-fs
|
||||||
endif
|
endif
|
||||||
|
|
Loading…
Reference in a new issue