From c98b59c7b855ce61c7eb085714fbbdc6dcdfe6f8 Mon Sep 17 00:00:00 2001 From: Thomas Vander Stichele Date: Wed, 10 Mar 2004 12:35:44 +0000 Subject: updating tools generation Original commit message from CVS: updating tools generation --- tools/Makefile.am | 37 +++++++++++++++++++++++++++++++++---- 1 file changed, 33 insertions(+), 4 deletions(-) (limited to 'tools/Makefile.am') diff --git a/tools/Makefile.am b/tools/Makefile.am index 9f102b07..fcd1f58f 100644 --- a/tools/Makefile.am +++ b/tools/Makefile.am @@ -1,10 +1,39 @@ -bin_SCRIPTS = gst-launch-ext gst-visualise +bin_SCRIPTS = \ + gst-launch-ext-@GST_MAJORMINOR@ \ + gst-visualise-@GST_MAJORMINOR@ -man_MANS = gst-launch-ext.1 gst-visualise.1 +man_MANS = \ + gst-launch-ext-@GST_MAJORMINOR@.1 \ + gst-visualise-@GST_MAJORMINOR@.1 -all: all-am chmod +CLEANFILES = $(man_MANS) + +EXTRA_DIST = \ + gst-launch-ext-m.m gst-visualise-m.m \ + gst-launch-ext.in gst-visualise.in + +# generate versioned scripts from templates +%-@GST_MAJORMINOR@: %-m.m + sed -e s,\@GST_MAJORMINOR\@,@GST_MAJORMINOR@,g $< > $@ + chmod +x $@ -EXTRA_DIST = $(bin_SCRIPTS) $(man_MANS) gst-launch-ext.in +# generate man pages +%-@GST_MAJORMINOR@.1: %.1.in + sed \ + -e s,gst-complete,gst-complete-@GST_MAJORMINOR@,g \ + -e s,gst-compprep,gst-compprep-@GST_MAJORMINOR@,g \ + -e s,gst-feedback,gst-feedback-@GST_MAJORMINOR@,g \ + -e s,gst-inspect,gst-inspect-@GST_MAJORMINOR@,g \ + -e s,gst-launch,gst-launch-@GST_MAJORMINOR@,g \ + -e s,gst-launch-ext,gst-launch-ext-@GST_MAJORMINOR@,g \ + -e s,gst-md5sum,gst-md5sum-@GST_MAJORMINOR@,g \ + -e s,gst-register,gst-register-@GST_MAJORMINOR@,g \ + -e s,gst-typefind,gst-typefind-@GST_MAJORMINOR@,g \ + -e s,gst-visualise,gst-visualise-@GST_MAJORMINOR@,g \ + -e s,gst-xmllaunch,gst-xmllaunch-@GST_MAJORMINOR@,g \ + $< >$@ + +all: all-am chmod chmod: $(bin_SCRIPTS) chmod +x $^ -- cgit