2004-10-11 17:48:37 +00:00
|
|
|
UNCONDDIRS = examples gst pkgconfig testsuite
|
2004-02-03 09:45:42 +00:00
|
|
|
SUBDIRS = \
|
2005-08-01 09:59:55 +00:00
|
|
|
$(UNCONDDIRS)
|
|
|
|
DIST_SUBDIRS = $(UNCONDDIRS)
|
2002-03-24 04:32:10 +00:00
|
|
|
|
|
|
|
EXTRA_DIST = \
|
2005-06-17 10:59:47 +00:00
|
|
|
ltihooks.py \
|
2005-09-02 11:01:24 +00:00
|
|
|
pygst.py.in \
|
2004-03-16 18:42:00 +00:00
|
|
|
gst-python.spec.in \
|
|
|
|
gst-python.spec \
|
2004-10-11 13:43:26 +00:00
|
|
|
RELEASE
|
2003-07-09 23:29:30 +00:00
|
|
|
|
2005-09-02 11:09:54 +00:00
|
|
|
BUILT_SOURCES = pygst.py
|
2005-09-02 11:18:47 +00:00
|
|
|
CLEANFILES = pygst.py
|
2005-09-02 11:09:54 +00:00
|
|
|
|
2004-06-21 10:18:08 +00:00
|
|
|
include $(top_srcdir)/common/release.mak
|
2005-07-01 10:47:25 +00:00
|
|
|
|
2005-09-02 10:56:19 +00:00
|
|
|
pygst.py: $(top_srcdir)/pygst.py.in Makefile
|
2005-07-12 14:00:03 +00:00
|
|
|
if test -f $@; then chmod +w $@; fi
|
|
|
|
sed -e "s|@PYGSTDIR\@|$(shell pwd)|g" \
|
|
|
|
-e "s|@GST_MAJORMINOR\@|$(GST_MAJORMINOR)|g" \
|
|
|
|
$< > $@
|
|
|
|
chmod -w $@
|
|
|
|
|
|
|
|
# rewrite pygst path in installed pygst.py, install pth file.
|
|
|
|
install-data-local: Makefile
|
2005-07-01 10:47:25 +00:00
|
|
|
$(mkinstalldirs) $(DESTDIR)$(pythondir)
|
2005-07-13 13:55:25 +00:00
|
|
|
sed -e "s|@PYGSTDIR\@|$(PYTHONDIR)/gst-$(GST_MAJORMINOR)|g" \
|
2005-07-12 14:00:03 +00:00
|
|
|
-e "s|@GST_MAJORMINOR\@|$(GST_MAJORMINOR)|g" \
|
|
|
|
$(srcdir)/pygst.py.in > $(DESTDIR)$(pythondir)/pygst.py
|
2005-09-02 11:07:49 +00:00
|
|
|
chmod 644 $(DESTDIR)$(pythondir)/pygst.py
|
2005-07-12 14:00:03 +00:00
|
|
|
echo "gst-$(GST_MAJORMINOR)" > $(DESTDIR)$(pythondir)/pygst.pth
|
|
|
|
|
|
|
|
# also install pth file in pyexec.
|
2005-07-01 10:47:25 +00:00
|
|
|
install-exec-local:
|
|
|
|
$(mkinstalldirs) $(DESTDIR)$(pyexecdir)
|
|
|
|
echo "gst-$(GST_MAJORMINOR)" > $(DESTDIR)$(pyexecdir)/pygst.pth
|
2005-09-02 11:07:49 +00:00
|
|
|
|
|
|
|
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
|