From 27a34f20f61cf65e8ea5f6cd6bbcd4b47506469c Mon Sep 17 00:00:00 2001
From: Marko Mecina <marko.mecina@univie.ac.at>
Date: Thu, 25 Aug 2022 13:56:01 +0200
Subject: [PATCH] Makefile update

---
 Makefile                 | 32 +++++---------------------------
 Tst/confignator/Makefile |  4 +++-
 2 files changed, 8 insertions(+), 28 deletions(-)

diff --git a/Makefile b/Makefile
index 744ad5a..5ee2380 100644
--- a/Makefile
+++ b/Makefile
@@ -1,30 +1,18 @@
-.PHONY: install-confignator install-confignator-userspace ccs-storage codeblockreusefeature install-testlib
+.PHONY: install-confignator ccs-storage codeblockreusefeature install-testlib
 
-all: install build-pc
+# all: install install-database-dev-env
 
 install: install-python-requirements install-confignator ccs-storage codeblockreusefeature
 
 databases: ccs-storage codeblockreusefeature
 
-# build-pc: build-fw-profile build-crplm build-cria build-crfee
-
 install-confignator:
 	@echo "+---------------------------------------+"
 	@echo "| installing confignator Python package |"
 	@echo "+---------------------------------------+"
-	    $(MAKE) build -C $(CURDIR)/Tst/confignator
-	    if [ -z $VIRTUAL_ENV ]; then pip install --user -U $(CURDIR)/Tst/confignator/dist/*.whl; else pip install -U $(CURDIR)/Tst/confignator/dist/*.whl; fi
-	@echo "+--------------------------------------+"
-	@echo "| installed confignator Python package |"
-	@echo "+--------------------------------------+"
-	@echo
-	
-install-confignator-userspace:
-	@echo "+---------------------------------------+"
-	@echo "| installing confignator Python package |"
-	@echo "+---------------------------------------+"
-	    $(MAKE) build -C $(CURDIR)/Tst/confignator
-	    pip install --user -U $(CURDIR)/Tst/confignator/dist/*.whl
+		$(MAKE) build -C $(CURDIR)/Tst/confignator
+	    if [ -z $VIRTUAL_ENV ]; then pip install --user -U --force-reinstall $(CURDIR)/Tst/confignator/dist/*.whl; else pip install -U --force-reinstall $(CURDIR)/Tst/confignator/dist/*.whl; fi
+		$(MAKE) build-doc -C $(CURDIR)/Tst/confignator
 	@echo "+--------------------------------------+"
 	@echo "| installed confignator Python package |"
 	@echo "+--------------------------------------+"
@@ -49,16 +37,6 @@ install-database-dev-env:
 	@echo "| installed Python dev packages for the database    |"
 	@echo "+---------------------------------------------------+"
 	@echo
-	
-install-python-env:
-	@echo "+-----------------------------+"
-	@echo "| installing Python modules   |"
-	@echo "+-----------------------------+"
-	    python -m pip install --user -U numpy scipy matplotlib cairocffi mysqlclient sqlalchemy wheel sphinx sphinx_rtd_theme astropy crcmod psutil
-	@echo "+-----------------------------+"
-	@echo "| installed Python modules    |"
-	@echo "+-----------------------------+"
-	@echo
 
 install-python-requirements:
 	@echo "+-----------------------------+"
diff --git a/Tst/confignator/Makefile b/Tst/confignator/Makefile
index 28b5a7e..5546c2a 100644
--- a/Tst/confignator/Makefile
+++ b/Tst/confignator/Makefile
@@ -7,6 +7,8 @@ DOC_DST = "doc/source/_apidocfiles/"
 DOC_OPEN = $(CURDIR)/confignator/open_doc.py
 DIST_DIR = $(CURDIR)/dist
 
+LOG_LEVEL = "WARNING"
+
 .PHONY: build clean-build install uninstall reinstall build-doc clean-doc-build all open-doc
 
 all: clean build install build-doc open-doc
@@ -34,7 +36,7 @@ build:	clean
 		@echo "log-file = ''" >> $(CONFIGNATOR_CFG)
 		@echo >> $(CONFIGNATOR_CFG)
 		@echo "[confignator-logging]" >> $(CONFIGNATOR_CFG)
-		@echo "level = INFO" >> $(CONFIGNATOR_CFG)
+		@echo "level = $(LOG_LEVEL)" >> $(CONFIGNATOR_CFG)
 		@echo >> $(CONFIGNATOR_CFG)
 		# build the Python package
 		# python3 setup.py sdist;
-- 
GitLab