diff --git a/Ccs/database/Makefile b/Ccs/database/Makefile index 693c179c79ec7173dd6739207771fb23a8e7f322..cc7ae5c3f9e7c1e94d063e589542540b70485b19 100644 --- a/Ccs/database/Makefile +++ b/Ccs/database/Makefile @@ -6,7 +6,7 @@ check: cd .. ; pylint -E database/test_db.py # cd .. ; MYPYPATH=~/.local/lib/python3.7/site-packages/ mypy -s database/tm_db.py database/test_db.py -run: +storage: cd .. ; python3 -m database.tm_db verbose: diff --git a/Makefile b/Makefile index f151a754b5debcb797f807306afe02f7863f8b0d..b852d36ab8525013002442cb259db1c454c5862f 100644 --- a/Makefile +++ b/Makefile @@ -30,12 +30,32 @@ install-database-dev-env: @echo "+-----------------------------------------------+" @echo "| installing Python packages for the database |" @echo "+-----------------------------------------------+" - $(MAKE) install-devenv -C $(CURDIR)/Ccs/devel/database + $(MAKE) install-devenv -C $(CURDIR)/Ccs/database @echo "+-----------------------------------------------+" @echo "| installed Python packages for the database |" @echo "+-----------------------------------------------+" @echo +install-database: + @echo "+----------------------------------------+" + @echo "| setting up the storage database schema |" + @echo "+----------------------------------------+" + $(MAKE) storage -C $(CURDIR)/Ccs/database + @echo "+--------------------------------------------+" + @echo "| set up of the storage database schemas done|" + @echo "+--------------------------------------------+" + @echo + +install-codeblockreusefeature: + @echo "+-----------------------------------------------+" + @echo "| setting up the codeblockreuse database schema |" + @echo "+-----------------------------------------------+" + $(MAKE) schema -C $(CURDIR)/Tst/codeblockreusefeature + @echo "+---------------------------------------------------+" + @echo "| set up of the codeblockreuse database schemas done|" + @echo "+---------------------------------------------------+" + @echo + set-start-scripts-permissions: @echo "+-----------------------------------------------------+" @echo "| setting permissions for the start scripts (execute) |" diff --git a/Tst/codeblockreusefeature/Makefile b/Tst/codeblockreusefeature/Makefile new file mode 100644 index 0000000000000000000000000000000000000000..9d91cd563d552f4433648acb3e28b0ab0d21e95e --- /dev/null +++ b/Tst/codeblockreusefeature/Makefile @@ -0,0 +1,4 @@ +schema: + python3 -m db_schema + +.PHONY: schema