2023-11-02 10:17:35 -05:00
|
|
|
SHELL := /bin/bash
|
|
|
|
|
|
2024-04-04 15:58:23 -04:00
|
|
|
BASE_REQUIREMENTS := $(shell ls ./*.in)
|
|
|
|
|
BASE_REQUIREMENTSTXT := $(patsubst %.in,%.txt,$(BASE_REQUIREMENTS))
|
2023-11-02 10:17:35 -05:00
|
|
|
|
2024-04-04 15:58:23 -04:00
|
|
|
.PHONY: all
|
2024-10-15 11:01:34 -04:00
|
|
|
all: compile-all-base
|
2023-11-02 10:17:35 -05:00
|
|
|
|
2024-04-04 15:58:23 -04:00
|
|
|
.PHONY: compile-test
|
|
|
|
|
compile-test:
|
|
|
|
|
pip-compile --upgrade test.in
|
2023-11-02 10:17:35 -05:00
|
|
|
|
2024-04-04 15:58:23 -04:00
|
|
|
.PHONY: compile-dev
|
|
|
|
|
compile-dev:
|
|
|
|
|
pip-compile --upgrade dev.in
|
|
|
|
|
|
|
|
|
|
.PHONY: compile-base
|
2024-04-19 14:39:25 -07:00
|
|
|
compile-base:
|
|
|
|
|
pip-compile --upgrade base.in
|
|
|
|
|
|
|
|
|
|
.PHONY: compile-all-base
|
|
|
|
|
compile-all-base: compile-base compile-test compile-dev
|
2024-04-20 20:08:20 -07:00
|
|
|
@$(foreach file,$(BASE_REQUIREMENTS),echo -e "\n\ncompiling: $(file)" && pip-compile --no-strip-extras --upgrade $(file) || exit;)
|
2024-04-04 15:58:23 -04:00
|
|
|
|
2023-11-02 10:17:35 -05:00
|
|
|
.PHONY: clean
|
2024-10-15 11:01:34 -04:00
|
|
|
clean: clean-base
|
2024-04-04 15:58:23 -04:00
|
|
|
|
|
|
|
|
.PHONY: clean-base
|
|
|
|
|
clean-base:
|
2024-10-15 11:01:34 -04:00
|
|
|
rm $(BASE_REQUIREMENTSTXT)
|