Skip to content

Commit de86cfb

Browse files
Add Makefile to simplify commands
1 parent bae1975 commit de86cfb

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

Makefile

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#/bin/make
2+
#@ Make Help
3+
4+
SHELL := /bin/bash
5+
PYLAUNCH_NAME ?= "PyLaunch"
6+
PYLAUNCH_VERSION ?= "v0.1.0"
7+
PYLAUNCH_DESCRIPTION ?= "Python wrapper for the Adobe Launch API."
8+
PYLAUNCH_ROOT ?= $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
9+
10+
.DEFAULT_GOAL := help
11+
.PHONY: help #: Testing
12+
help:
13+
@cd ${PYLAUNCH_ROOT} && awk 'BEGIN {FS = " ?#?: "; print ""${PYLAUNCH_NAME}" "${PYLAUNCH_VERSION}"\n"${PYLAUNCH_DESCRIPTION}"\n\nUsage: make \033[36m<command>\033[0m\n\nCommands:"} /^.PHONY: ?[a-zA-Z_-]/ { printf " \033[36m%-10s\033[0m %s\n", $$2, $$3 }' $(MAKEFILE_LIST)
14+
15+
.PHONY: init #: Download dependencies into virtual environment
16+
init:
17+
@cd ${PYLAUNCH_ROOT} && \
18+
python3 -m venv .venv && \
19+
poetry install
20+

0 commit comments

Comments
 (0)