blob: c386e6843ad4f2a6cdb6943ea031f6aa4f5427e4 [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001.EXPORT_ALL_VARIABLES:
2
3DIRS = interface5.0 server
4
5ROOT_DIRECTORY = /etc/web
6CGIS_DIRECTORY = ./bins/cgis
7CGI_SRC_DIRECTORY = ./cgi-src
8
9UPLOAD_CGI = upload.cgi
10UPLOAD_BOOTLOADER_CGI = upload_bootloader.cgi
11UPLOAD_SETTINGS = upload_settings.cgi
12USB_UPGRADE_CGI = usb_upgrade.cgi
13UPLOAD_CA_CLIENT_CERT_CGI = upload_caclcert.cgi
14UPLOAD_KEY_CERT_CGI = upload_keycert.cgi
15UPLOAD_WAPI_AS_CERT_CGI = upload_wapi_as_cert.cgi
16UPLOAD_WAPI_USER_CERT_CGI = upload_wapi_user_cert.cgi
17UPLOAD_WRITE = upload.write
18UPLOAD_DAFAULT_PARA = upload_dafault_para.cgi
19UPLOAD_TR069_CRET = upload_tr069_cert.cgi
20
21
22all:
23 for i in $(DIRS) ; do make -C $$i $@ || exit $?; done
24
25romfs:
26# $(ROMFSINST) web/web_7510 $(ROOT_DIRECTORY)
27# $(ROMFSINST) $(CUSTOM_DIRECTORY) $(ROOT_DIRECTORY)
28# chmod 755 $(ROOTFS_DIR)/etc/web -R
29 for i in $(DIRS) ; do make -C $$i $@ ; done
30
31 mkdir -p ./bins
32 cp -vf ./server/goahead ./bins/goahead
33# cp -vf $(CGI_SRC_DIRECTORY)/$(UPLOAD_CGI) $(CGIS_DIRECTORY)/$(UPLOAD_CGI)
34# cp -vf $(CGI_SRC_DIRECTORY)/$(UPLOAD_BOOTLOADER_CGI) $(CGIS_DIRECTORY)/$(UPLOAD_BOOTLOADER_CGI)
35# cp -vf $(CGI_SRC_DIRECTORY)/reboot.sh $(CGIS_DIRECTORY)/reboot.sh
36 #chmod +x *.sh
37# cp -vf $(CGI_SRC_DIRECTORY)/ExportSettings.sh $(CGIS_DIRECTORY)/ExportSettings.sh
38# cp -vf $(CGI_SRC_DIRECTORY)/ExportSyslog.sh $(CGIS_DIRECTORY)/ExportSyslog.sh
39# cp -vf $(CGI_SRC_DIRECTORY)/$(UPLOAD_SETTINGS) $(CGIS_DIRECTORY)/$(UPLOAD_SETTINGS)
40# cp -vf $(CGI_SRC_DIRECTORY)/upload.write $(CGIS_DIRECTORY)/upload.write
41# cp -vf $(CGI_SRC_DIRECTORY)/upload_dafault_para.cgi $(CGIS_DIRECTORY)/upload_dafault_para.cgi
42# cp -vf $(CGI_SRC_DIRECTORY)/history.sh $(CGIS_DIRECTORY)/history.sh
43
44# cp -vf $(CGI_SRC_DIRECTORY)/$(UPLOAD_TR069_CRET) $(CGIS_DIRECTORY)/$(UPLOAD_TR069_CRET)
45ifeq ($(CONFIG_USE_WEBUI_SSL),yes)
46# @mkdir -p $(ROOTFS_DIR)/etc_ro/certs
47# @cp -afvp $(APP_DIR)/goahead/certs/* $(ROOTFS_DIR)/etc_ro/certs
48# @rm -rfv $(ROOTFS_DIR)/etc_ro/certs/*.csr
49endif
50
51
52
53
54clean:
55 for i in $(DIRS) ; do make -C $$i clean ; done
56 rm -rvf ./bins/
57
58
59
60