-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
34 lines (27 loc) · 792 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
SHELL := /usr/bin/env bash
DEFAULT_GOAL := test
PHONY = clean
# ONESHELL:
test:
echo "Not implemented"
build-lambda:
mkdir -p .build/
mkdir -p .target/assets/
mkdir -p .target/templates/
cp -r ./assets .target/
cp -r ./templates .target/
cp ./*.py .target/
cd .target/ && zip -FSqr ../.build/lambda.zip .
build-lambda-full: build-dependencies build-lambda
build-dependencies:
python3.9 -m pip install -r requirements.txt -t .target/ --upgrade
python3.9 -m pip install \
--platform manylinux2010_x86_64 \
--implementation cp \
--python 3.9 \
--only-binary=:all: --upgrade \
--target .target/ \
cryptography pyopenssl
clean:
rm -rf .build || echo ".build doesn't exist"
rm -rf .target || echo ".target doesn't exist"