Skip to content
Snippets Groups Projects
Commit 27a34f20 authored by Marko Mecina's avatar Marko Mecina
Browse files

Makefile update

parent 2c5d128f
No related branches found
No related tags found
No related merge requests found
.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 install: install-python-requirements install-confignator ccs-storage codeblockreusefeature
databases: ccs-storage codeblockreusefeature databases: ccs-storage codeblockreusefeature
# build-pc: build-fw-profile build-crplm build-cria build-crfee
install-confignator: install-confignator:
@echo "+---------------------------------------+" @echo "+---------------------------------------+"
@echo "| installing confignator Python package |" @echo "| installing confignator Python package |"
@echo "+---------------------------------------+" @echo "+---------------------------------------+"
$(MAKE) build -C $(CURDIR)/Tst/confignator $(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 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
@echo "+--------------------------------------+" $(MAKE) build-doc -C $(CURDIR)/Tst/confignator
@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
@echo "+--------------------------------------+" @echo "+--------------------------------------+"
@echo "| installed confignator Python package |" @echo "| installed confignator Python package |"
@echo "+--------------------------------------+" @echo "+--------------------------------------+"
...@@ -49,16 +37,6 @@ install-database-dev-env: ...@@ -49,16 +37,6 @@ install-database-dev-env:
@echo "| installed Python dev packages for the database |" @echo "| installed Python dev packages for the database |"
@echo "+---------------------------------------------------+" @echo "+---------------------------------------------------+"
@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: install-python-requirements:
@echo "+-----------------------------+" @echo "+-----------------------------+"
......
...@@ -7,6 +7,8 @@ DOC_DST = "doc/source/_apidocfiles/" ...@@ -7,6 +7,8 @@ DOC_DST = "doc/source/_apidocfiles/"
DOC_OPEN = $(CURDIR)/confignator/open_doc.py DOC_OPEN = $(CURDIR)/confignator/open_doc.py
DIST_DIR = $(CURDIR)/dist DIST_DIR = $(CURDIR)/dist
LOG_LEVEL = "WARNING"
.PHONY: build clean-build install uninstall reinstall build-doc clean-doc-build all open-doc .PHONY: build clean-build install uninstall reinstall build-doc clean-doc-build all open-doc
all: clean build install build-doc open-doc all: clean build install build-doc open-doc
...@@ -34,7 +36,7 @@ build: clean ...@@ -34,7 +36,7 @@ build: clean
@echo "log-file = ''" >> $(CONFIGNATOR_CFG) @echo "log-file = ''" >> $(CONFIGNATOR_CFG)
@echo >> $(CONFIGNATOR_CFG) @echo >> $(CONFIGNATOR_CFG)
@echo "[confignator-logging]" >> $(CONFIGNATOR_CFG) @echo "[confignator-logging]" >> $(CONFIGNATOR_CFG)
@echo "level = INFO" >> $(CONFIGNATOR_CFG) @echo "level = $(LOG_LEVEL)" >> $(CONFIGNATOR_CFG)
@echo >> $(CONFIGNATOR_CFG) @echo >> $(CONFIGNATOR_CFG)
# build the Python package # build the Python package
# python3 setup.py sdist; # python3 setup.py sdist;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment