mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-24 08:08:22 +00:00
fix a small bug in the pygst.py install rule; add an uninstall rule
Original commit message from CVS: fix a small bug in the pygst.py install rule; add an uninstall rule
This commit is contained in:
parent
1685eb1d31
commit
3846745b49
1 changed files with 6 additions and 1 deletions
|
@ -27,10 +27,15 @@ install-data-local: Makefile
|
|||
sed -e "s|@PYGSTDIR\@|$(PYTHONDIR)/gst-$(GST_MAJORMINOR)|g" \
|
||||
-e "s|@GST_MAJORMINOR\@|$(GST_MAJORMINOR)|g" \
|
||||
$(srcdir)/pygst.py.in > $(DESTDIR)$(pythondir)/pygst.py
|
||||
chmod 644 $(DESTDIR)$(pyexecdir)/pygst.py
|
||||
chmod 644 $(DESTDIR)$(pythondir)/pygst.py
|
||||
echo "gst-$(GST_MAJORMINOR)" > $(DESTDIR)$(pythondir)/pygst.pth
|
||||
|
||||
# also install pth file in pyexec.
|
||||
install-exec-local:
|
||||
$(mkinstalldirs) $(DESTDIR)$(pyexecdir)
|
||||
echo "gst-$(GST_MAJORMINOR)" > $(DESTDIR)$(pyexecdir)/pygst.pth
|
||||
|
||||
uninstall-local:
|
||||
@rm $(DESTDIR)/$(pythondir)/pygst.py > /dev/null 2>&1 || true
|
||||
@rm $(DESTDIR)/$(pythondir)/pygst.pth > /dev/null 2>&1 || true
|
||||
@rm $(DESTDIR)/$(pyexecdir)/pygst.pth > /dev/null 2>&1 || true
|
||||
|
|
Loading…
Reference in a new issue