blob: 92f375486b5ca7edffd21b6b314381cf2d30c5d1 [file] [log] [blame]
include $(zte_app_mak)
all:
echo "zte_webui compile do nothing"
clean:
echo "zte_webui clean do nothing"
romfs:
@mkdir -p $(ROOTFS_DIR)/etc_ro/web
@cp -afvp $(APP_DIR)/zte_webui/* $(ROOTFS_DIR)/etc_ro/web
find . -type f -name '*.js' | xargs -n1 -I {} java -jar $(YUICOMPRESSOR) {} -o $(ROOTFS_DIR)/etc_ro/web/{}
find . -type f -name '*.css' | xargs -n1 -I {} java -jar $(YUICOMPRESSOR) {} -o $(ROOTFS_DIR)/etc_ro/web/{}
find . -type f -name '*.html' | xargs -n1 -I {} sed -i 's/^[ \t]*//g' $(ROOTFS_DIR)/etc_ro/web/{}
find . -type f -name '*.html' | xargs -n1 -I {} sed -i 's/[ \t]*$$//g' $(ROOTFS_DIR)/etc_ro/web/{}
find . -type f -name '*.html' | xargs -n1 -I {} sed -i ":a;N;s/\r//g;ta" $(ROOTFS_DIR)/etc_ro/web/{}
find . -type f -name '*.html' | xargs -n1 -I {} sed -i ":a;N;s/\n//g;ta" $(ROOTFS_DIR)/etc_ro/web/{}
ifeq ($(CONFIG_WEBUI_TYPE),CPE)
-rm -v $(ROOTFS_DIR)/etc_ro/web/js/ext/set.js
-cp -v $(ROOTFS_DIR)/etc_ro/web/js/ext/set_cpe.js $(ROOTFS_DIR)/etc_ro/web/js/ext/set.js
endif
ifeq ($(CONFIG_WEBUI_TYPE),CPE_SW)
-rm -v $(ROOTFS_DIR)/etc_ro/web/js/ext/set.js
-cp -v $(ROOTFS_DIR)/etc_ro/web/js/ext/set_cpe_sw.js $(ROOTFS_DIR)/etc_ro/web/js/ext/set.js
endif
ifeq ($(CONFIG_WIFI_MODULE), aic8800)
-rm -v $(ROOTFS_DIR)/etc_ro/web/js/ext/set.js
-cp -v $(ROOTFS_DIR)/etc_ro/web/js/ext/set_aic8800.js $(ROOTFS_DIR)/etc_ro/web/js/ext/set.js
endif
ifeq ($(PRJ_IS_MIN), yes)
-cp -v $(ROOTFS_DIR)/etc_ro/web/js/ext/set_min.js $(ROOTFS_DIR)/etc_ro/web/js/ext/set.js
ifeq ($(CONFIG_WIFI_MODULE), xr819)
-cp -v $(ROOTFS_DIR)/etc_ro/web/js/ext/set_xr819.js $(ROOTFS_DIR)/etc_ro/web/js/ext/set.js
endif
ifeq ($(CONFIG_WIFI_MODULE), ssv6x5x)
-cp -v $(ROOTFS_DIR)/etc_ro/web/js/ext/set_ssv6x5x.js $(ROOTFS_DIR)/etc_ro/web/js/ext/set.js
endif
endif
ifneq ($(CONFIG_USE_WEBUI_SECURITY),yes)
-rm -v $(ROOTFS_DIR)/etc_ro/web/js/3rd/crypto-js.js
-cp -v $(ROOTFS_DIR)/etc_ro/web/js/ext/crypto-js-null.js $(ROOTFS_DIR)/etc_ro/web/js/3rd/crypto-js.js
-sed -i 's/PASSWORD_ENCODE:false,//' $(ROOTFS_DIR)/etc_ro/web/js/ext/set.js
endif
-rm -v $(ROOTFS_DIR)/etc_ro/web/js/ext/crypto-js-null.js
-rm -v $(ROOTFS_DIR)/etc_ro/web/js/ext/set_min.js
-rm -v $(ROOTFS_DIR)/etc_ro/web/js/ext/set_xr819.js
-rm -v $(ROOTFS_DIR)/etc_ro/web/js/ext/set_ssv6x5x.js
-rm -v $(ROOTFS_DIR)/etc_ro/web/js/ext/set_aic8800.js
-rm -v $(ROOTFS_DIR)/etc_ro/web/js/ext/set_cpe.js
-rm -v $(ROOTFS_DIR)/etc_ro/web/js/ext/set_cpe_sw.js
-rm -v $(ROOTFS_DIR)/etc_ro/web/makefile
ifeq ($(CONFIG_USE_WEBUI_ZIP),yes)
(cd $(ROOTFS_DIR)/etc_ro && zip -r web.zip web)
(cd $(ROOTFS_DIR)/etc_ro && rm -rfv web)
endif