Skip to content

Commit

Permalink
Fixed Makefile build-time variable assignments and evaluations
Browse files Browse the repository at this point in the history
  • Loading branch information
mluypaert committed Sep 21, 2023
1 parent b38848e commit 66fe9ce
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ ECR_REPO_NAME := wormbase/names
EB_APP_ENV_FILE := app-env.config
PROJ_NAME ?= "wormbase-names"
LOCAL_GOOGLE_REDIRECT_URI = "http://lvh.me:3000"
ifeq ($(PROJ_NAME), wormbase-names)
ifeq ($(PROJ_NAME), "wormbase-names")
WB_DB_URI ?= "datomic:ddb://us-east-1/WSNames/wormbase"
GOOGLE_REDIRECT_URI ?= "https://names.wormbase.org"
GOOGLE_APP_PROFILE ?= "prod"
else ifeq ($(PROJ_NAME), wormbase-names-test)
else ifeq ($(PROJ_NAME), "wormbase-names-test")
WB_DB_URI ?= "datomic:ddb://us-east-1/WSNames-test-14/wormbase"
GOOGLE_REDIRECT_URI ?= https://test-names.wormbase.org/
GOOGLE_REDIRECT_URI ?= "https://test-names.wormbase.org"
GOOGLE_APP_PROFILE ?= "prod"
else
WB_DB_URI ?= "datomic:ddb://us-east-1/WSNames-test-14/wormbase"
Expand Down Expand Up @@ -80,6 +80,7 @@ ui-build: google-oauth2-secrets \
$(call print-help,ui-build,\
Build JS and CSS file for release.)
@ export REACT_APP_GOOGLE_OAUTH_CLIENT_ID=${GOOGLE_OAUTH_CLIENT_ID} && \
echo "Building UI using GOOGLE_APP_PROFILE: ${GOOGLE_APP_PROFILE}" && \
./scripts/build-ui.sh

.PHONY: clean
Expand Down

0 comments on commit 66fe9ce

Please sign in to comment.