mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
1ed1da92db
Original commit message from CVS: * Makefile.am: (install-data-local): PYGSTDIR typo fix * examples/bps.py: * examples/f2f.py: * examples/gstfile.py: Updated some examples to 0.9
43 lines
1.1 KiB
Makefile
43 lines
1.1 KiB
Makefile
if BUILD_DOCS
|
|
SUBDIRS_DOCS = docs
|
|
else
|
|
SUBDIRS_DOCS =
|
|
endif
|
|
|
|
UNCONDDIRS = examples gst pkgconfig testsuite
|
|
SUBDIRS = \
|
|
$(UNCONDDIRS) \
|
|
$(SUBDIRS_DOCS)
|
|
DIST_SUBDIRS = $(UNCONDDIRS) docs
|
|
|
|
EXTRA_DIST = \
|
|
ltihooks.py \
|
|
gst-python.spec.in \
|
|
gst-python.spec \
|
|
README-docs \
|
|
RELEASE
|
|
|
|
include $(top_srcdir)/common/release.mak
|
|
|
|
pygst.py: pygst.py.in Makefile
|
|
if test -f $@; then chmod +w $@; fi
|
|
sed -e "s|@PYGSTDIR\@|$(shell pwd)|g" \
|
|
-e "s|@GST_MAJORMINOR\@|$(GST_MAJORMINOR)|g" \
|
|
$< > $@
|
|
chmod -w $@
|
|
|
|
all-local: pygst.py
|
|
|
|
# rewrite pygst path in installed pygst.py, install pth file.
|
|
install-data-local: Makefile
|
|
$(mkinstalldirs) $(DESTDIR)$(pythondir)
|
|
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
|
|
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
|