ifeq (dev, $(ENV)) dc = docker-compose -f docker-compose.yml -f docker-compose.dev.yml helpers = mongo-express else dc = docker-compose endif build_shared: cd shared && npm run build build_bot: build_shared cd bot && npm run build build_web: build_shared cd web && npm run build build_local: build_shared build_bot build_web build: $(dc) build start_env: build $(dc) up db mongo adminer facedetect $(helpers) start: build $(dc) up db mongo adminer noctbot web facedetect $(helpers) start_bot: build $(dc) up db mongo adminer noctbot facedetect $(helpers) start_web: build $(dc) up db mongo adminer web $(helpers) npmi: cd shared && npm install cd bot && npm install cd web && npm install