DIR ?= ~/tmp/ REPOSITORY_HOST = ssh://_gitea@$(BAGUETTE) DIR_WEBCLIENT = $(DIR)/webclient DIR_DNSMANAGER = $(DIR)/dnsmanager DIR_AUTHD = $(DIR)/authd DIR_PARSER = $(DIR)/parser setup-dev-env: $(DIR) clone-repos checkouts build @echo 'Next steps:' @echo '1. setup authd: "make run-authd" then "make setup-a-few-accounts"' @echo '2. setup dnsmanagerd: "make run-dnsmanagerd"' @echo '3. setup websocket proxies: "make init-ws-auth" and "make init-ws-dnsmanager"' @echo '4. serve the website: "make server-website" and eventually "make serve-doc"' $(DIR): mkdir -p $(DIR) serve-website: -cd $(DIR)/webclient && make serve serve-doc: -cd $(DIR)/webclient && make serve-doc # History. #checkout-dev: # @#-cd $(DIR)/dnsmanager-interface && git checkout -b dev && git pull --set-upstream origin dev # -cd $(DIR)/halogen-websocket-ipc-playzone && git checkout -b dev && git pull --set-upstream origin dev # @#git clone $(REPOSITORY_HOST)/Baguette/libipc-examples.git # @#git clone $(REPOSITORY_HOST)/karchnu/dnsmanager-interface.git # @#git clone $(REPOSITORY_HOST)/karchnu/halogen-websocket-ipc-playzone.git # @#-cd $(DIR)/dnsmanager-interface && make # @#-cd $(DIR)/halogen-websocket-ipc-playzone && make bundle checkouts: -cd $(DIR_WEBCLIENT) && git checkout caa -cd $(DIR_AUTHD) && git checkout migration -cd $(DIR_DNSMANAGER) && git checkout migration clone-repos-parser: git clone $(REPOSITORY_HOST)/Baguette/parser.git $(DIR_PARSER) clone-repos: clone-repos-parser git clone $(REPOSITORY_HOST)/Baguette/dnsmanager-webclient.git $(DIR_WEBCLIENT) git clone $(REPOSITORY_HOST)/Baguette/dnsmanager.git $(DIR_DNSMANAGER) git clone $(REPOSITORY_HOST)/Baguette/authd.git $(DIR_AUTHD) build: -cd $(DIR_DNSMANAGER) && make -cd $(DIR_AUTHD) && make && make build-client -cd $(DIR_WEBCLIENT) && make bundle