mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-26 10:03:40 +03:00
build-sys: add clean-python target
Building for a different version of Python requires removing all build products for the old version. There's no nice way to do it, short of doing 'make clean'. The new 'clean-python' target is a bit hacky, but seems to work: ./configure PYTHON=python2 && make && make install make clean-python ./configure PYTHON=python3 --disable-gtk-doc --disable-man-pages && make && make install should install modules for both versions of Python.
This commit is contained in:
parent
31f49d022a
commit
f5853dafa1
@ -4136,6 +4136,11 @@ CLEAN_LOCAL_HOOKS += clean-sphinx
|
||||
clean-sphinx:
|
||||
-rm -rf docs/html/python-systemd/
|
||||
|
||||
# Remove Python stuff, e.g. to force rebuilding for a different Python version.
|
||||
clean-python:
|
||||
-rm -rf src/python-systemd/.libs src/python-systemd/*.l[ao]
|
||||
-rm -f _daemon.la id128.la _journal.la login.la _reader.la
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
substitutions = \
|
||||
'|rootlibexecdir=$(rootlibexecdir)|' \
|
||||
|
Loading…
x
Reference in New Issue
Block a user