mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-29 09:04:17 +00:00
61 lines
1.7 KiB
Diff
61 lines
1.7 KiB
Diff
|
commit 353794feb596d95e3f8893e39b174c5a89d1013e
|
||
|
Author: Arthur Gautier <baloo@superbaloo.net>
|
||
|
Date: Wed Feb 17 02:27:40 2021 +0000
|
||
|
|
||
|
python-install
|
||
|
|
||
|
Signed-off-by: Arthur Gautier <baloo@superbaloo.net>
|
||
|
|
||
|
diff --git a/samples/Makefile.am b/samples/Makefile.am
|
||
|
index 7d69bf8..1803bb9 100644
|
||
|
--- a/samples/Makefile.am
|
||
|
+++ b/samples/Makefile.am
|
||
|
@@ -39,19 +39,9 @@ python-uninstall:
|
||
|
$(PIP3) uninstall -y $(PY_PACKAGE_NAME)
|
||
|
|
||
|
if PYTHON_INSTALLATION
|
||
|
-install-exec-local: $(PY_PACKAGE)
|
||
|
- @if ! test $(findstring /usr, "$(DESTDIR)$(bindir)"); then \
|
||
|
- echo "Warning: Not installing python package to $(DESTDIR)$(bindir)"; \
|
||
|
- else \
|
||
|
- $(MAKE) python-install; \
|
||
|
- fi
|
||
|
+install-exec-local: python-install
|
||
|
|
||
|
-uninstall-local:
|
||
|
- @if ! test $(findstring /usr, "$(DESTDIR)$(bindir)"); then \
|
||
|
- echo "Cleanup for distcheck build not implemented" ; \
|
||
|
- else \
|
||
|
- $(MAKE) python-uninstall; \
|
||
|
- fi
|
||
|
+uninstall-local: python-uninstall
|
||
|
endif
|
||
|
|
||
|
|
||
|
diff --git a/src/swtpm_setup/Makefile.am b/src/swtpm_setup/Makefile.am
|
||
|
index 529eefe..533b1b3 100644
|
||
|
--- a/src/swtpm_setup/Makefile.am
|
||
|
+++ b/src/swtpm_setup/Makefile.am
|
||
|
@@ -29,19 +29,9 @@ python-uninstall:
|
||
|
$(PIP3) uninstall -y $(PY_PACKAGE_NAME)
|
||
|
|
||
|
if PYTHON_INSTALLATION
|
||
|
-install-exec-local: $(PY_PACKAGE)
|
||
|
- @if ! test $(findstring /usr, "$(DESTDIR)$(bindir)"); then \
|
||
|
- echo "Warning: Not installing python package to $(DESTDIR)$(bindir)"; \
|
||
|
- else \
|
||
|
- $(MAKE) python-install; \
|
||
|
- fi
|
||
|
+install-exec-local: python-install
|
||
|
|
||
|
-uninstall-local:
|
||
|
- @if ! test $(findstring /usr, "$(DESTDIR)$(bindir)"); then \
|
||
|
- echo "Cleanup for distcheck build not implemented" ; \
|
||
|
- else \
|
||
|
- $(MAKE) python-uninstall; \
|
||
|
- fi
|
||
|
+uninstall-local: python-uninstall
|
||
|
endif
|
||
|
|
||
|
# for out-of-tree builds we need to clean up
|