From 63995807ab3b362e08e44402d3dbc7da0f73bf44 Mon Sep 17 00:00:00 2001 From: Joe Date: Fri, 17 May 2024 17:59:14 -0400 Subject: [PATCH 1/2] ADD clean target --- Makefile | 5 +++++ api/Makefile | 4 ++++ web/Makefile | 11 ++++++++++- 3 files changed, 19 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 60f3ed1da..32fd8ca27 100644 --- a/Makefile +++ b/Makefile @@ -118,6 +118,11 @@ mkdebug: mkrestart: ./k8s/debug/restart.sh +.PHONY: clean # Remove python and yarn modules +clean: + make -C web clean + make -C api clean + apirun: make -C api run diff --git a/api/Makefile b/api/Makefile index d06a14a54..4a1f76069 100644 --- a/api/Makefile +++ b/api/Makefile @@ -82,6 +82,10 @@ requirements: venv pip-compile --quiet --upgrade requirements/common.in pip-compile --quiet --upgrade requirements/dev.in +.PHONY: clean # remove venv +clean: + rm -rf venv + debug: make -C .. debug yeetdb: diff --git a/web/Makefile b/web/Makefile index 3bbbc0f50..03075a59a 100644 --- a/web/Makefile +++ b/web/Makefile @@ -1,4 +1,13 @@ +help: + @echo '' + node_modules: yarn + +.PHONY: run run: node_modules - yarn run start \ No newline at end of file + yarn run start + +,PHONY: clean +clean: + rm -rf node_modules yarn.lock From 7f67354bae607803a1d5d0d0fb3aa98ddcb46645 Mon Sep 17 00:00:00 2001 From: John McCann Cunniff Jr Date: Thu, 23 May 2024 21:10:23 -0400 Subject: [PATCH 2/2] CHG remove yarn lock from web clean --- web/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/Makefile b/web/Makefile index 03075a59a..dbee71384 100644 --- a/web/Makefile +++ b/web/Makefile @@ -10,4 +10,4 @@ run: node_modules ,PHONY: clean clean: - rm -rf node_modules yarn.lock + rm -rf node_modules