Thomas Vander Stichele | c98b59c | 2004-03-10 12:35:44 +0000 | [diff] [blame] | 1 | bin_SCRIPTS = \ |
| 2 | gst-launch-ext-@GST_MAJORMINOR@ \ |
| 3 | gst-visualise-@GST_MAJORMINOR@ |
Thomas Vander Stichele | 29a71d3 | 2002-02-08 11:15:45 +0000 | [diff] [blame] | 4 | |
Thomas Vander Stichele | c98b59c | 2004-03-10 12:35:44 +0000 | [diff] [blame] | 5 | man_MANS = \ |
| 6 | gst-launch-ext-@GST_MAJORMINOR@.1 \ |
| 7 | gst-visualise-@GST_MAJORMINOR@.1 |
| 8 | |
Thomas Vander Stichele | 1f73e81 | 2004-03-10 12:48:37 +0000 | [diff] [blame] | 9 | CLEANFILES = $(man_MANS) $(bin_SCRIPTS) |
Thomas Vander Stichele | c98b59c | 2004-03-10 12:35:44 +0000 | [diff] [blame] | 10 | |
| 11 | EXTRA_DIST = \ |
| 12 | gst-launch-ext-m.m gst-visualise-m.m \ |
Thomas Vander Stichele | ba32fbc | 2004-03-10 13:21:31 +0000 | [diff] [blame] | 13 | gst-launch-ext.1.in gst-visualise.1.in |
Thomas Vander Stichele | c98b59c | 2004-03-10 12:35:44 +0000 | [diff] [blame] | 14 | |
| 15 | # generate versioned scripts from templates |
| 16 | %-@GST_MAJORMINOR@: %-m.m |
| 17 | sed -e s,\@GST_MAJORMINOR\@,@GST_MAJORMINOR@,g $< > $@ |
| 18 | chmod +x $@ |
| 19 | |
| 20 | # generate man pages |
| 21 | %-@GST_MAJORMINOR@.1: %.1.in |
| 22 | sed \ |
| 23 | -e s,gst-complete,gst-complete-@GST_MAJORMINOR@,g \ |
| 24 | -e s,gst-compprep,gst-compprep-@GST_MAJORMINOR@,g \ |
| 25 | -e s,gst-feedback,gst-feedback-@GST_MAJORMINOR@,g \ |
| 26 | -e s,gst-inspect,gst-inspect-@GST_MAJORMINOR@,g \ |
| 27 | -e s,gst-launch,gst-launch-@GST_MAJORMINOR@,g \ |
| 28 | -e s,gst-launch-ext,gst-launch-ext-@GST_MAJORMINOR@,g \ |
| 29 | -e s,gst-md5sum,gst-md5sum-@GST_MAJORMINOR@,g \ |
| 30 | -e s,gst-register,gst-register-@GST_MAJORMINOR@,g \ |
| 31 | -e s,gst-typefind,gst-typefind-@GST_MAJORMINOR@,g \ |
| 32 | -e s,gst-visualise,gst-visualise-@GST_MAJORMINOR@,g \ |
| 33 | -e s,gst-xmllaunch,gst-xmllaunch-@GST_MAJORMINOR@,g \ |
| 34 | $< >$@ |
Thomas Vander Stichele | b89b3f5 | 2002-03-01 15:46:26 +0000 | [diff] [blame] | 35 | |
Thomas Vander Stichele | a1eca4a | 2004-03-09 16:36:30 +0000 | [diff] [blame] | 36 | all: all-am chmod |
| 37 | |
Thomas Vander Stichele | a1eca4a | 2004-03-09 16:36:30 +0000 | [diff] [blame] | 38 | chmod: $(bin_SCRIPTS) |
| 39 | chmod +x $^ |