Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide additional guidance to use the Makefile #78

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,18 @@ SHELL:=/bin/bash

AZURETRE_HOME?="AzureTRE"

# This must come before the include statement
# Otherwise, $(lastword) will be the last included file
THIS_MAKEFILE_FULLPATH := $(abspath $(lastword $(MAKEFILE_LIST)))
THIS_MAKEFILE_DIR := $(dir $(THIS_MAKEFILE_FULLPATH))

include $(AZURETRE_HOME)/Makefile

# Add your make commands down here

# This is a sample make command to build user resource templates that are in this repo, versus the AzureTRE core repo
# Any "make bundle" command from the AzureTRE core repo can be pasted here by modifying the command name
# and modifying MAKEFILE_DIR to THIS_MAKEFILE_DIR
user_resource_bundle_sample:
$(MAKE) bundle-build bundle-publish bundle-register \
DIR="${THIS_MAKEFILE_DIR}templates/workspace_services/${WORKSPACE_SERVICE}/user_resources/${BUNDLE}" BUNDLE_TYPE=user_resource WORKSPACE_SERVICE_NAME=tre-service-${WORKSPACE_SERVICE}