@@ -55,33 +55,40 @@ install-data-hook:
55
55
mkdir -p $(DESTDIR )$(datadir ) /@PACKAGE@/; \
56
56
for d in $$ (cat data-manifest); do \
57
57
install -D -m $$(test -x $$d && echo 0755 || echo 0644 ) $$ d $(DESTDIR )$(datadir ) /@PACKAGE@/$$ d; done ; \
58
+ rm -rf $(DESTDIR )$(datadir ) /@PACKAGE@/tests; \
58
59
mv $(DESTDIR )$(datadir ) /@PACKAGE@/test $(DESTDIR )$(datadir ) /@PACKAGE@/tests; \
59
60
cp test/testcases/xmlonly.sh $(DESTDIR )$(datadir ) /@PACKAGE@/tests/testcases/configbasic-xml.filter
61
+ mkdir -p $(DESTDIR )$(datadir ) /bash-completion/completions/; \
62
+ $(INSTALL ) -D -m 0755 contrib/bash_completion.sh $(DESTDIR )$(datadir ) /bash-completion/completions/crm; \
60
63
if [ -d $( DESTDIR) $( firewalld_servicedir) ]; then \
61
64
install -D -m 0644 $(srcdir ) /$(firewalld_service_DATA ) $(DESTDIR )$(firewalld_servicedir ) /$(firewalld_service_DATA ) ; \
62
65
fi
63
66
64
- # Python module installation
65
- all-local :
67
+ # Build Python wheel
68
+ $( builddir ) /dist/crmsh- $( VERSION ) -py3-none-any.whl $( builddir ) /build :
66
69
cd $(srcdir ) ; python3 -m build --outdir $(shell readlink -f $(builddir ) ) /dist --wheel --sdist --verbose
67
70
71
+ all-local : $(builddir ) /dist/crmsh-$(VERSION ) -py3-none-any.whl $(builddir ) /build
72
+
68
73
python_prefix = --prefix=$(prefix )
69
74
75
+ # Python module installation
70
76
install-exec-local :
71
- $(INSTALL ) -d -m 770 $(DESTDIR ) / ${localstatedir} /log/crmsh
77
+ $(INSTALL ) -d -m 770 $(DESTDIR ) ${localstatedir} /log/crmsh
72
78
python3 -m pip install --prefix=$(prefix ) $(shell readlink -f $(builddir ) ) /dist/* .whl
73
79
$(INSTALL ) -d -m 770 $(DESTDIR )$(CRM_CACHE_DIR )
74
80
75
81
uninstall-local :
76
82
rm -rf $(crmconfdir )
77
83
rm -rf $(docdir )
78
84
rm -rf $(DESTDIR )$(CRM_CACHE_DIR )
79
- rm -rf $( DESTDIR ) / ${localstatedir} /log/crmsh
80
- rm -rf $(DESTDIR )$( pkgpythondir )
85
+ python3 -m pip uninstall --yes @PACKAGE@
86
+ rm -rf $(DESTDIR ) ${localstatedir} /log/crmsh
81
87
82
88
uninstall-hook :
83
89
@echo " Removing installed data files..."
84
90
rm -rf $(DESTDIR )$(datadir ) /@PACKAGE@
91
+ rm -f $(DESTDIR )$(datadir ) /bash-completion/completions/crm
85
92
rm -f $(DESTDIR )$(firewalld_servicedir ) /$(firewalld_service_DATA )
86
93
@echo " Uninstallation complete."
87
94
0 commit comments