-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
89 lines (77 loc) · 3.69 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
.PHONY: confignator ccs-storage codeblockreusefeature install-testlib python-requirements db-user database-dev-env databases startmenu-entries
install: python-requirements confignator ccs-storage codeblockreusefeature startmenu-entries
databases: ccs-storage codeblockreusefeature
db-user:
sudo ./mk_mysql_user.sh $(USER) $(PW)
python-requirements:
@echo "+-----------------------------+"
@echo "| installing Python modules |"
@echo "+-----------------------------+"
if [ -z $(VIRTUAL_ENV) ]; then pip install --user --break-system-packages -U -r $(CURDIR)/requirements.txt; else pip install -U -r $(CURDIR)/requirements.txt; fi
@echo "+-----------------------------+"
@echo "| installed Python modules |"
@echo "+-----------------------------+"
@echo
confignator:
@echo "+---------------------------------------+"
@echo "| installing confignator Python package |"
@echo "+---------------------------------------+"
$(MAKE) build -C $(CURDIR)/Tst/confignator
if [ -z $(VIRTUAL_ENV) ]; then pip install --user --break-system-packages -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 "+--------------------------------------+"
@echo
ccs-storage:
@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
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
database-dev-env:
@echo "+---------------------------------------------------+"
@echo "| installing Python dev packages for the database |"
@echo "+---------------------------------------------------+"
$(MAKE) install-devenv -C $(CURDIR)/Ccs/database
@echo "+---------------------------------------------------+"
@echo "| installed Python dev packages for the database |"
@echo "+---------------------------------------------------+"
@echo
install-testlib:
@echo "+-----------------------------------+"
@echo "| installing testlib Python package |"
@echo "+-----------------------------------+"
$(MAKE) all -C $(CURDIR)/Tst/testing_library
@echo "+----------------------------------+"
@echo "| installed testlib Python package |"
@echo "+----------------------------------+"
@echo
startmenu-entries:
@echo "+-----------------------------------+"
@echo "| creating application menu entries |"
@echo "+-----------------------------------+"
./gen_desktop_files.sh $(CURDIR)
mv ccs.desktop $(HOME)/.local/share/applications/
mv tst.desktop $(HOME)/.local/share/applications/
@echo "+----------------------------------+"
@echo "| created application menu entries |"
@echo "+----------------------------------+"
@echo
set-start-scripts-permissions:
@echo "+-----------------------------------------------------+"
@echo "| setting permissions for the start scripts (execute) |"
@echo "+-----------------------------------------------------+"
$(MAKE) all -C $(CURDIR)/Tst/