Skip to content
This repository has been archived by the owner on Jun 16, 2024. It is now read-only.

Fix Makefile for Debian Stretch (stable) #70

Open
wants to merge 2 commits into
base: master
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
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@ SHELL := /bin/bash
FUNCTION_NAME=haaska

BUILD_DIR=build
PIP_SYSTEM:=$(shell pip install --help | grep -q -- --system && echo --system)

haaska.zip: haaska.py config/*
mkdir -p $(BUILD_DIR)
cp $^ $(BUILD_DIR)
pip install -t $(BUILD_DIR) requests
pip install $(PIP_SYSTEM) -t $(BUILD_DIR) requests
cd $(BUILD_DIR); zip ../$@ -r *

.PHONY: deploy
Expand Down