unstructured

Форк
0
30 строк · 979.0 Байт
1
PIP = pip-compile --upgrade -o $@ $<
2
SHELL := /bin/bash
3
# we don't need to make constraints.txt from constraints.in
4
REQUIREMENTS := $(filter-out ./constraints.in,$(shell find . -type f -name '*.in'))
5
REQUIREMENTSTXT := $(patsubst %.in,%.txt,$(REQUIREMENTS))
6

7
# those dependencies only needs constraint.in to and %.in to compile
8
constraint_dependent = base.txt extra-pptx.txt
9

10
.PHONY: all $(REQUIREMENTSTXT)
11

12
all: $(REQUIREMENTSTXT)
13

14
# a special case where the .txt depends on other .txt; here dev.txt depends on test.txt
15
dev.txt: dev.in test.txt base.txt constraints.in
16
	$(PIP)
17

18
# the most common case: an extra (or test.txt) that depends on base.txt and %.in
19
$(REQUIREMENTSTXT): %.txt: %.in base.txt constraints.in
20
	$(PIP)
21

22
# special case where its only extra dependency is constraints.in; here base.txt and extra-ppt.txt
23
# only depends on their own .in and constraits.in
24
$(constraint_dependent): %.txt: %.in constraints.in
25
	$(PIP)
26

27
.PHONY: clean
28

29
clean:
30
	rm $(REQUIREMENTSTXT)
31

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.