summaryrefslogtreecommitdiffstats
path: root/tools/Makefile.am
blob: 1b8ab850ad2bae99f0ce33f948571e8bca267e02 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
bin_SCRIPTS = \
	gst-launch-ext-@GST_MAJORMINOR@ \
	gst-visualise-@GST_MAJORMINOR@

man_MANS = \
        gst-launch-ext-@GST_MAJORMINOR@.1 \
        gst-visualise-@GST_MAJORMINOR@.1

CLEANFILES = $(man_MANS) $(bin_SCRIPTS)

EXTRA_DIST = \
	gst-launch-ext-m.m gst-visualise-m.m \
	gst-launch-ext.1.in gst-visualise.1.in

# generate versioned scripts from templates
%-@GST_MAJORMINOR@: %-m.m
	sed -e s,\@GST_MAJORMINOR\@,@GST_MAJORMINOR@,g $< > $@
	chmod +x $@

# 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 $^