lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 1 | .EXPORT_ALL_VARIABLES: |
| 2 | |
| 3 | DIRS = interface5.0 server |
| 4 | |
| 5 | ROOT_DIRECTORY = /etc/web |
| 6 | CGIS_DIRECTORY = ./bins/cgis |
| 7 | CGI_SRC_DIRECTORY = ./cgi-src |
| 8 | |
| 9 | UPLOAD_CGI = upload.cgi |
| 10 | UPLOAD_BOOTLOADER_CGI = upload_bootloader.cgi |
| 11 | UPLOAD_SETTINGS = upload_settings.cgi |
| 12 | USB_UPGRADE_CGI = usb_upgrade.cgi |
| 13 | UPLOAD_CA_CLIENT_CERT_CGI = upload_caclcert.cgi |
| 14 | UPLOAD_KEY_CERT_CGI = upload_keycert.cgi |
| 15 | UPLOAD_WAPI_AS_CERT_CGI = upload_wapi_as_cert.cgi |
| 16 | UPLOAD_WAPI_USER_CERT_CGI = upload_wapi_user_cert.cgi |
| 17 | UPLOAD_WRITE = upload.write |
| 18 | UPLOAD_DAFAULT_PARA = upload_dafault_para.cgi |
| 19 | UPLOAD_TR069_CRET = upload_tr069_cert.cgi |
| 20 | |
| 21 | |
| 22 | all: |
| 23 | for i in $(DIRS) ; do make -C $$i $@ || exit $?; done |
| 24 | |
| 25 | romfs: |
| 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) |
| 45 | ifeq ($(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 |
| 49 | endif |
| 50 | |
| 51 | |
| 52 | |
| 53 | |
| 54 | clean: |
| 55 | for i in $(DIRS) ; do make -C $$i clean ; done |
| 56 | rm -rvf ./bins/ |
| 57 | |
| 58 | |
| 59 | |
| 60 | |